Enum bdk_chain::local_chain::ApplyHeaderError
source · pub enum ApplyHeaderError {
InconsistentBlocks,
CannotConnect(CannotConnectError),
}
Expand description
The error type for LocalChain::apply_header_connected_to
.
Variants§
InconsistentBlocks
Occurs when connected_to
block conflicts with either the current block or previous block.
CannotConnect(CannotConnectError)
Occurs when the update cannot connect with the original chain.
Trait Implementations§
source§impl Clone for ApplyHeaderError
impl Clone for ApplyHeaderError
source§fn clone(&self) -> ApplyHeaderError
fn clone(&self) -> ApplyHeaderError
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for ApplyHeaderError
impl Debug for ApplyHeaderError
source§impl Display for ApplyHeaderError
impl Display for ApplyHeaderError
source§impl Error for ApplyHeaderError
impl Error for ApplyHeaderError
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()
source§impl PartialEq for ApplyHeaderError
impl PartialEq for ApplyHeaderError
source§fn eq(&self, other: &ApplyHeaderError) -> bool
fn eq(&self, other: &ApplyHeaderError) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for ApplyHeaderError
Auto Trait Implementations§
impl Freeze for ApplyHeaderError
impl RefUnwindSafe for ApplyHeaderError
impl Send for ApplyHeaderError
impl Sync for ApplyHeaderError
impl Unpin for ApplyHeaderError
impl UnwindSafe for ApplyHeaderError
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