#[non_exhaustive]pub enum PrimitiveError {
NonCanonicalInteger,
IntegerTooLarge,
TransactionTypeTooLarge,
ReservedLegacyType,
UnexpectedCodecError,
}Expand description
Primitive constructor failures.
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.
NonCanonicalInteger
Integer bytes were not in shortest-form canonical big-endian encoding.
IntegerTooLarge
Integer bytes exceed the primitive’s fixed-width range.
TransactionTypeTooLarge
Transaction type exceeds the EIP-2718 single-byte typed envelope range.
ReservedLegacyType
Zero is reserved for the legacy transaction domain, not a typed envelope.
UnexpectedCodecError
A codec error unexpected for the selected primitive helper was returned.
Trait Implementations§
Source§impl Clone for PrimitiveError
impl Clone for PrimitiveError
Source§fn clone(&self) -> PrimitiveError
fn clone(&self) -> PrimitiveError
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 PrimitiveError
Source§impl Debug for PrimitiveError
impl Debug for PrimitiveError
Source§impl Display for PrimitiveError
impl Display for PrimitiveError
impl Eq for PrimitiveError
Source§impl From<PrimitiveError> for PrimitiveRlpError
impl From<PrimitiveError> for PrimitiveRlpError
Source§fn from(error: PrimitiveError) -> Self
fn from(error: PrimitiveError) -> Self
Converts to this type from the input type.
Source§impl PartialEq for PrimitiveError
impl PartialEq for PrimitiveError
Source§fn eq(&self, other: &PrimitiveError) -> bool
fn eq(&self, other: &PrimitiveError) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for PrimitiveError
Auto Trait Implementations§
impl Freeze for PrimitiveError
impl RefUnwindSafe for PrimitiveError
impl Send for PrimitiveError
impl Sync for PrimitiveError
impl Unpin for PrimitiveError
impl UnsafeUnpin for PrimitiveError
impl UnwindSafe for PrimitiveError
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