Enum chain_impl_mockchain::header::cstruct::HeaderError
source · pub enum HeaderError {
InvalidSize,
UnknownVersion,
SizeMismatch {
expected: usize,
got: usize,
},
}
Variants§
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 PartialEq<HeaderError> for HeaderError
impl PartialEq<HeaderError> for HeaderError
source§fn eq(&self, other: &HeaderError) -> bool
fn eq(&self, other: &HeaderError) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for HeaderError
impl StructuralEq for HeaderError
impl StructuralPartialEq for HeaderError
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§
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