#[non_exhaustive]pub enum LegacyTransactionDecodeError {
Envelope(TransactionEnvelopeError),
TypedEnvelope {
type_byte: u8,
},
WrongFieldCount {
expected: usize,
found: usize,
},
FieldDecode {
field: LegacyTransactionField,
source: DecodeError,
},
InvalidToLength {
found: usize,
},
}Expand description
Legacy 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 legacy fields could be decoded.
TypedEnvelope
A typed envelope was supplied to the legacy decoder.
WrongFieldCount
Legacy transaction list did not contain exactly nine fields.
FieldDecode
A field failed RLP or primitive-domain decoding.
Fields
§
field: LegacyTransactionFieldField being decoded.
§
source: DecodeErrorUnderlying decode error.
InvalidToLength
The to field was neither empty nor a 20-byte address.
Implementations§
Trait Implementations§
Source§impl Clone for LegacyTransactionDecodeError
impl Clone for LegacyTransactionDecodeError
Source§fn clone(&self) -> LegacyTransactionDecodeError
fn clone(&self) -> LegacyTransactionDecodeError
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 LegacyTransactionDecodeError
Source§impl Debug for LegacyTransactionDecodeError
impl Debug for LegacyTransactionDecodeError
impl Eq for LegacyTransactionDecodeError
Source§impl PartialEq for LegacyTransactionDecodeError
impl PartialEq for LegacyTransactionDecodeError
Source§fn eq(&self, other: &LegacyTransactionDecodeError) -> bool
fn eq(&self, other: &LegacyTransactionDecodeError) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for LegacyTransactionDecodeError
Auto Trait Implementations§
impl Freeze for LegacyTransactionDecodeError
impl RefUnwindSafe for LegacyTransactionDecodeError
impl Send for LegacyTransactionDecodeError
impl Sync for LegacyTransactionDecodeError
impl Unpin for LegacyTransactionDecodeError
impl UnsafeUnpin for LegacyTransactionDecodeError
impl UnwindSafe for LegacyTransactionDecodeError
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