#[non_exhaustive]pub enum TransactionEncodeErrorCategory {
MalformedInput,
ResourceExhaustion,
}Expand description
Stable high-level transaction encode 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
A field, length, or output buffer is malformed for canonical encoding.
ResourceExhaustion
A bounded codec policy rejected an encoded list payload.
Trait Implementations§
Source§impl Clone for TransactionEncodeErrorCategory
impl Clone for TransactionEncodeErrorCategory
Source§fn clone(&self) -> TransactionEncodeErrorCategory
fn clone(&self) -> TransactionEncodeErrorCategory
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 TransactionEncodeErrorCategory
impl Eq for TransactionEncodeErrorCategory
Source§impl PartialEq for TransactionEncodeErrorCategory
impl PartialEq for TransactionEncodeErrorCategory
Source§fn eq(&self, other: &TransactionEncodeErrorCategory) -> bool
fn eq(&self, other: &TransactionEncodeErrorCategory) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for TransactionEncodeErrorCategory
Auto Trait Implementations§
impl Freeze for TransactionEncodeErrorCategory
impl RefUnwindSafe for TransactionEncodeErrorCategory
impl Send for TransactionEncodeErrorCategory
impl Sync for TransactionEncodeErrorCategory
impl Unpin for TransactionEncodeErrorCategory
impl UnsafeUnpin for TransactionEncodeErrorCategory
impl UnwindSafe for TransactionEncodeErrorCategory
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