#[non_exhaustive]pub enum ReceiptDecodeError {
EmptyInput,
UnsupportedReceiptType {
type_byte: u8,
},
ScalarPrefix {
prefix: u8,
},
ReservedPrefix,
WrongFieldCount {
expected: usize,
found: usize,
},
InvalidLogFieldCount {
found: usize,
},
FieldDecode {
field: ReceiptField,
source: DecodeError,
},
InvalidStatusOrStateRoot {
found: usize,
},
InvalidLogsBloomLength {
found: usize,
},
InvalidLogAddressLength {
found: usize,
},
InvalidLogTopicLength {
found: usize,
},
}Expand description
Receipt 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.
EmptyInput
No bytes were supplied.
UnsupportedReceiptType
The first byte is the legacy-zero typed prefix.
ScalarPrefix
The first byte is an RLP scalar prefix, not a receipt envelope.
ReservedPrefix
The first byte is the EIP-2718 reserved extension sentinel.
WrongFieldCount
Receipt list did not contain exactly four fields.
InvalidLogFieldCount
A log entry did not contain exactly three fields.
FieldDecode
A field failed bounded RLP or primitive-domain decoding.
InvalidStatusOrStateRoot
Status/root field was neither status 0/1 nor a 32-byte root.
InvalidLogsBloomLength
Logs bloom was not exactly 256 bytes.
InvalidLogAddressLength
Log address was not exactly 20 bytes.
InvalidLogTopicLength
Log topic was not exactly 32 bytes.
Implementations§
Trait Implementations§
Source§impl Clone for ReceiptDecodeError
impl Clone for ReceiptDecodeError
Source§fn clone(&self) -> ReceiptDecodeError
fn clone(&self) -> ReceiptDecodeError
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 ReceiptDecodeError
Source§impl Debug for ReceiptDecodeError
impl Debug for ReceiptDecodeError
Source§impl Display for ReceiptDecodeError
impl Display for ReceiptDecodeError
impl Eq for ReceiptDecodeError
Source§impl PartialEq for ReceiptDecodeError
impl PartialEq for ReceiptDecodeError
Source§fn eq(&self, other: &ReceiptDecodeError) -> bool
fn eq(&self, other: &ReceiptDecodeError) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for ReceiptDecodeError
Auto Trait Implementations§
impl Freeze for ReceiptDecodeError
impl RefUnwindSafe for ReceiptDecodeError
impl Send for ReceiptDecodeError
impl Sync for ReceiptDecodeError
impl Unpin for ReceiptDecodeError
impl UnsafeUnpin for ReceiptDecodeError
impl UnwindSafe for ReceiptDecodeError
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