#[non_exhaustive]pub enum RlpDeriveError {
Decode(DecodeError),
Field,
WrongFieldCount {
expected: usize,
found: usize,
},
}Expand description
Error used by derive-generated RLP struct encoders and decoders.
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.
Decode(DecodeError)
The bounded codec rejected the input or output buffer.
Field
A field-specific codec rejected one generated field operation.
WrongFieldCount
The decoded list field count did not match the generated struct shape.
Trait Implementations§
Source§impl Clone for RlpDeriveError
impl Clone for RlpDeriveError
Source§fn clone(&self) -> RlpDeriveError
fn clone(&self) -> RlpDeriveError
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 RlpDeriveError
Source§impl Debug for RlpDeriveError
impl Debug for RlpDeriveError
Source§impl Display for RlpDeriveError
impl Display for RlpDeriveError
impl Eq for RlpDeriveError
Source§impl From<DecodeError> for RlpDeriveError
impl From<DecodeError> for RlpDeriveError
Source§fn from(error: DecodeError) -> Self
fn from(error: DecodeError) -> Self
Converts to this type from the input type.
Source§impl From<Infallible> for RlpDeriveError
impl From<Infallible> for RlpDeriveError
Source§fn from(error: Infallible) -> Self
fn from(error: Infallible) -> Self
Converts to this type from the input type.
Source§impl PartialEq for RlpDeriveError
impl PartialEq for RlpDeriveError
Source§fn eq(&self, other: &RlpDeriveError) -> bool
fn eq(&self, other: &RlpDeriveError) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for RlpDeriveError
Auto Trait Implementations§
impl Freeze for RlpDeriveError
impl RefUnwindSafe for RlpDeriveError
impl Send for RlpDeriveError
impl Sync for RlpDeriveError
impl Unpin for RlpDeriveError
impl UnsafeUnpin for RlpDeriveError
impl UnwindSafe for RlpDeriveError
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