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>
pub fn downcast_ref<E>(&self) -> Option<&E>
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)>
Returns 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.
Auto Trait Implementations§
impl Freeze for HeaderError
impl RefUnwindSafe for HeaderError
impl Send for HeaderError
impl Sync for HeaderError
impl Unpin for HeaderError
impl UnwindSafe for HeaderError
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more