Enum bdk_wallet::ApplyBlockError
source · 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)>
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