pub enum ApplyBlockError {
CannotConnect(CannotConnectError),
UnexpectedConnectedToHash {
connected_to_hash: BlockHash,
expected_hash: BlockHash,
},
}
Expand description
An error that may occur when applying a block to Wallet
.
Variants§
CannotConnect(CannotConnectError)
Occurs when the update chain cannot connect with original chain.
UnexpectedConnectedToHash
Occurs when the connected_to
hash does not match the hash derived from block
.
Trait Implementations§
Source§impl Debug for ApplyBlockError
impl Debug for ApplyBlockError
Source§impl Display for ApplyBlockError
impl Display for ApplyBlockError
Source§impl Error for ApplyBlockError
impl Error for ApplyBlockError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
Auto Trait Implementations§
impl Freeze for ApplyBlockError
impl RefUnwindSafe for ApplyBlockError
impl Send for ApplyBlockError
impl Sync for ApplyBlockError
impl Unpin for ApplyBlockError
impl UnwindSafe for ApplyBlockError
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more