#[non_exhaustive]pub enum LegacyTransactionDecodeErrorCategory {
MalformedInput,
WrongType,
Unsupported,
ResourceExhaustion,
}Expand description
Stable high-level legacy transaction decode error categories.
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.
MalformedInput
Input is malformed for a legacy transaction.
WrongType
A typed transaction envelope was supplied to a legacy-only decoder.
Unsupported
A future or unsupported transaction domain was encountered.
ResourceExhaustion
The active decode policy rejected the input as too large or too deep.
Trait Implementations§
Source§impl Clone for LegacyTransactionDecodeErrorCategory
impl Clone for LegacyTransactionDecodeErrorCategory
Source§fn clone(&self) -> LegacyTransactionDecodeErrorCategory
fn clone(&self) -> LegacyTransactionDecodeErrorCategory
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 LegacyTransactionDecodeErrorCategory
impl Eq for LegacyTransactionDecodeErrorCategory
Source§impl PartialEq for LegacyTransactionDecodeErrorCategory
impl PartialEq for LegacyTransactionDecodeErrorCategory
Source§fn eq(&self, other: &LegacyTransactionDecodeErrorCategory) -> bool
fn eq(&self, other: &LegacyTransactionDecodeErrorCategory) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for LegacyTransactionDecodeErrorCategory
Auto Trait Implementations§
impl Freeze for LegacyTransactionDecodeErrorCategory
impl RefUnwindSafe for LegacyTransactionDecodeErrorCategory
impl Send for LegacyTransactionDecodeErrorCategory
impl Sync for LegacyTransactionDecodeErrorCategory
impl Unpin for LegacyTransactionDecodeErrorCategory
impl UnsafeUnpin for LegacyTransactionDecodeErrorCategory
impl UnwindSafe for LegacyTransactionDecodeErrorCategory
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