Struct ckb_verification::HeaderError
source · [−]pub struct HeaderError { /* private fields */ }Expand description
Errors due the fact that the header rule is not respected.
Implementations
sourceimpl HeaderError
impl HeaderError
sourcepub fn kind(&self) -> HeaderErrorKind
pub fn kind(&self) -> HeaderErrorKind
Returns the general category of this error.
sourcepub fn downcast_ref<E>(&self) -> Option<&E> where
E: Display + Debug + Send + Sync + 'static,
pub fn downcast_ref<E>(&self) -> Option<&E> where
E: Display + Debug + Send + Sync + 'static,
Downcast this error object by reference.
sourcepub fn root_cause(&self) -> &(dyn Error + 'static)
pub fn root_cause(&self) -> &(dyn Error + 'static)
The lowest level cause of this error — this error’s cause’s cause’s cause etc.
Trait Implementations
sourceimpl Clone for HeaderError
impl Clone for HeaderError
sourcefn clone(&self) -> HeaderError
fn clone(&self) -> HeaderError
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read more
sourceimpl Debug for HeaderError
impl Debug for HeaderError
sourceimpl Display for HeaderError
impl Display for HeaderError
sourceimpl Error for HeaderError
impl Error for HeaderError
1.30.0 · sourcefn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
The lower-level source of this error, if any. Read more
sourcefn backtrace(&self) -> Option<&Backtrace>
fn backtrace(&self) -> Option<&Backtrace>
backtrace)Returns a stack backtrace, if available, of where this error occurred. Read more
1.0.0 · sourcefn description(&self) -> &str
fn description(&self) -> &str
use the Display impl or to_string()
sourceimpl From<BlockVersionError> for HeaderError
impl From<BlockVersionError> for HeaderError
sourcefn from(error: BlockVersionError) -> Self
fn from(error: BlockVersionError) -> Self
Performs the conversion.
sourceimpl From<EpochError> for HeaderError
impl From<EpochError> for HeaderError
sourcefn from(error: EpochError) -> Self
fn from(error: EpochError) -> Self
Performs the conversion.
sourceimpl From<HeaderError> for Error
impl From<HeaderError> for Error
sourcefn from(error: HeaderError) -> Self
fn from(error: HeaderError) -> Self
Performs the conversion.
sourceimpl From<HeaderErrorKind> for HeaderError
impl From<HeaderErrorKind> for HeaderError
sourcefn from(kind: HeaderErrorKind) -> Self
fn from(kind: HeaderErrorKind) -> Self
Performs the conversion.
sourceimpl From<InvalidParentError> for HeaderError
impl From<InvalidParentError> for HeaderError
sourcefn from(error: InvalidParentError) -> Self
fn from(error: InvalidParentError) -> Self
Performs the conversion.
sourceimpl From<NumberError> for HeaderError
impl From<NumberError> for HeaderError
sourcefn from(error: NumberError) -> Self
fn from(error: NumberError) -> Self
Performs the conversion.
sourceimpl From<PowError> for HeaderError
impl From<PowError> for HeaderError
sourceimpl From<TimestampError> for HeaderError
impl From<TimestampError> for HeaderError
sourcefn from(error: TimestampError) -> Self
fn from(error: TimestampError) -> Self
Performs the conversion.
Auto Trait Implementations
impl !RefUnwindSafe for HeaderError
impl Send for HeaderError
impl Sync for HeaderError
impl Unpin for HeaderError
impl !UnwindSafe for HeaderError
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
toowned_clone_into)Uses borrowed data to replace owned data, usually by cloning. Read more