#[non_exhaustive]pub enum TransactionEnvelopeError {
EmptyInput,
UnsupportedTransactionType {
type_byte: u8,
},
ScalarPrefix {
prefix: u8,
},
ReservedPrefix,
Decode(DecodeError),
}Expand description
Transaction envelope classification 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.
UnsupportedTransactionType
The first byte is a typed-prefix value this release does not admit.
The envelope shell intentionally accepts every nonzero typed prefix in
0x01..=0x7f as opaque data. This error is reserved for prefix values
outside that admitted shell domain, such as legacy zero if it reaches
typed-prefix handling.
ScalarPrefix
The first byte is an RLP scalar prefix, not a transaction envelope.
ReservedPrefix
The first byte is the EIP-2718 reserved extension sentinel.
Decode(DecodeError)
The legacy RLP list shell failed exact bounded decoding.
Implementations§
Trait Implementations§
Source§impl Clone for TransactionEnvelopeError
impl Clone for TransactionEnvelopeError
Source§fn clone(&self) -> TransactionEnvelopeError
fn clone(&self) -> TransactionEnvelopeError
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 TransactionEnvelopeError
Source§impl Debug for TransactionEnvelopeError
impl Debug for TransactionEnvelopeError
Source§impl Display for TransactionEnvelopeError
impl Display for TransactionEnvelopeError
impl Eq for TransactionEnvelopeError
Source§impl PartialEq for TransactionEnvelopeError
impl PartialEq for TransactionEnvelopeError
Source§fn eq(&self, other: &TransactionEnvelopeError) -> bool
fn eq(&self, other: &TransactionEnvelopeError) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for TransactionEnvelopeError
Auto Trait Implementations§
impl Freeze for TransactionEnvelopeError
impl RefUnwindSafe for TransactionEnvelopeError
impl Send for TransactionEnvelopeError
impl Sync for TransactionEnvelopeError
impl Unpin for TransactionEnvelopeError
impl UnsafeUnpin for TransactionEnvelopeError
impl UnwindSafe for TransactionEnvelopeError
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