pub enum HeaderExtError {
Chain(Box<dyn Error + Send + Sync>),
BlockNotFound,
ChainWorkOverflow,
}Expand description
Errors that can occur when using the HeaderExt methods.
Variants§
Chain(Box<dyn Error + Send + Sync>)
An error related to the blockchain interface, wrapping the actual error.
BlockNotFound
Indicates that the block could not be found in the blockchain.
ChainWorkOverflow
You got an overflow while calculating the chain work.
Trait Implementations§
Source§impl Debug for HeaderExtError
impl Debug for HeaderExtError
Source§impl From<ChainWorkOverflow> for HeaderExtError
impl From<ChainWorkOverflow> for HeaderExtError
Source§fn from(_: ChainWorkOverflow) -> Self
fn from(_: ChainWorkOverflow) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for HeaderExtError
impl !RefUnwindSafe for HeaderExtError
impl Send for HeaderExtError
impl Sync for HeaderExtError
impl Unpin for HeaderExtError
impl !UnwindSafe for HeaderExtError
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