Struct ckb_verification::HeaderError
source · pub struct HeaderError { /* private fields */ }Expand description
Errors due the fact that the header rule is not respected.
Implementations§
source§impl 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§
source§impl Clone for HeaderError
impl Clone for HeaderError
source§fn clone(&self) -> HeaderError
fn clone(&self) -> HeaderError
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 HeaderError
impl Debug for HeaderError
source§impl Display for HeaderError
impl Display for HeaderError
source§impl Error for HeaderError
impl Error for HeaderError
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 From<BlockVersionError> for HeaderError
impl From<BlockVersionError> for HeaderError
source§fn from(error: BlockVersionError) -> Self
fn from(error: BlockVersionError) -> Self
Converts to this type from the input type.
source§impl From<EpochError> for HeaderError
impl From<EpochError> for HeaderError
source§fn from(error: EpochError) -> Self
fn from(error: EpochError) -> Self
Converts to this type from the input type.
source§impl From<HeaderError> for Error
impl From<HeaderError> for Error
source§fn from(error: HeaderError) -> Self
fn from(error: HeaderError) -> Self
Converts to this type from the input type.
source§impl From<HeaderErrorKind> for HeaderError
impl From<HeaderErrorKind> for HeaderError
source§fn from(kind: HeaderErrorKind) -> Self
fn from(kind: HeaderErrorKind) -> Self
Converts to this type from the input type.
source§impl From<InvalidParentError> for HeaderError
impl From<InvalidParentError> for HeaderError
source§fn from(error: InvalidParentError) -> Self
fn from(error: InvalidParentError) -> Self
Converts to this type from the input type.
source§impl From<NumberError> for HeaderError
impl From<NumberError> for HeaderError
source§fn from(error: NumberError) -> Self
fn from(error: NumberError) -> Self
Converts to this type from the input type.
source§impl From<PowError> for HeaderError
impl From<PowError> for HeaderError
source§impl From<TimestampError> for HeaderError
impl From<TimestampError> for HeaderError
source§fn from(error: TimestampError) -> Self
fn from(error: TimestampError) -> Self
Converts to this type from the input type.