#[non_exhaustive]pub enum AccessListTransactionDecodeError {
Envelope(TransactionEnvelopeError),
WrongTransactionType {
type_byte: u8,
},
WrongFieldCount {
expected: usize,
found: usize,
},
FieldDecode {
field: AccessListTransactionField,
source: DecodeError,
},
InvalidToLength {
found: usize,
},
InvalidYParity {
value: u64,
},
InvalidAccessListEntryFieldCount {
found: usize,
},
InvalidAccessListAddressLength {
found: usize,
},
InvalidStorageKeyLength {
found: usize,
},
}Expand description
EIP-2930 access-list transaction 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.
Envelope(TransactionEnvelopeError)
Envelope classification failed before access-list fields could decode.
WrongTransactionType
A non-EIP-2930 envelope was supplied to this decoder.
WrongFieldCount
Transaction payload did not contain exactly eleven fields.
FieldDecode
A field failed RLP or primitive-domain decoding.
Fields
§
field: AccessListTransactionFieldField being decoded.
§
source: DecodeErrorUnderlying decode error.
InvalidToLength
The to field was neither empty nor a 20-byte address.
InvalidYParity
Signature y parity was not 0 or 1.
InvalidAccessListEntryFieldCount
Access-list entry was not [address, storageKeys].
InvalidAccessListAddressLength
Access-list address was not a 20-byte scalar.
InvalidStorageKeyLength
Access-list storage key was not a 32-byte scalar.
Implementations§
Trait Implementations§
Source§impl Clone for AccessListTransactionDecodeError
impl Clone for AccessListTransactionDecodeError
Source§fn clone(&self) -> AccessListTransactionDecodeError
fn clone(&self) -> AccessListTransactionDecodeError
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 AccessListTransactionDecodeError
impl Eq for AccessListTransactionDecodeError
Source§impl PartialEq for AccessListTransactionDecodeError
impl PartialEq for AccessListTransactionDecodeError
Source§fn eq(&self, other: &AccessListTransactionDecodeError) -> bool
fn eq(&self, other: &AccessListTransactionDecodeError) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for AccessListTransactionDecodeError
Auto Trait Implementations§
impl Freeze for AccessListTransactionDecodeError
impl RefUnwindSafe for AccessListTransactionDecodeError
impl Send for AccessListTransactionDecodeError
impl Sync for AccessListTransactionDecodeError
impl Unpin for AccessListTransactionDecodeError
impl UnsafeUnpin for AccessListTransactionDecodeError
impl UnwindSafe for AccessListTransactionDecodeError
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