#[non_exhaustive]pub enum BlockHeaderDecodeError {
Decode(DecodeError),
WrongFieldCount {
expected: usize,
found: usize,
},
FieldDecode {
field: BlockHeaderField,
source: DecodeError,
},
InvalidFieldLength {
field: BlockHeaderField,
expected: usize,
found: usize,
},
}Expand description
Execution header decode failure.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Decode(DecodeError)
Header RLP list decode failed.
WrongFieldCount
Header field count did not match the selected fork field set.
FieldDecode
A field failed RLP or primitive-domain decoding.
InvalidFieldLength
A fixed-width field had the wrong byte length.
Implementations§
Trait Implementations§
Source§impl Clone for BlockHeaderDecodeError
impl Clone for BlockHeaderDecodeError
Source§fn clone(&self) -> BlockHeaderDecodeError
fn clone(&self) -> BlockHeaderDecodeError
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for BlockHeaderDecodeError
Source§impl Debug for BlockHeaderDecodeError
impl Debug for BlockHeaderDecodeError
Source§impl Display for BlockHeaderDecodeError
impl Display for BlockHeaderDecodeError
impl Eq for BlockHeaderDecodeError
Source§impl PartialEq for BlockHeaderDecodeError
impl PartialEq for BlockHeaderDecodeError
Source§fn eq(&self, other: &BlockHeaderDecodeError) -> bool
fn eq(&self, other: &BlockHeaderDecodeError) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for BlockHeaderDecodeError
Auto Trait Implementations§
impl Freeze for BlockHeaderDecodeError
impl RefUnwindSafe for BlockHeaderDecodeError
impl Send for BlockHeaderDecodeError
impl Sync for BlockHeaderDecodeError
impl Unpin for BlockHeaderDecodeError
impl UnsafeUnpin for BlockHeaderDecodeError
impl UnwindSafe for BlockHeaderDecodeError
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