Enum fastrlp::DecodeError
source · pub enum DecodeError {
Overflow,
LeadingZero,
InputTooShort,
NonCanonicalSingleByte,
NonCanonicalSize,
UnexpectedLength,
UnexpectedString,
UnexpectedList,
ListLengthMismatch {
expected: usize,
got: usize,
},
Custom(&'static str),
}
Variants§
Overflow
LeadingZero
InputTooShort
NonCanonicalSingleByte
NonCanonicalSize
UnexpectedLength
UnexpectedString
UnexpectedList
ListLengthMismatch
Custom(&'static str)
Trait Implementations§
source§impl Clone for DecodeError
impl Clone for DecodeError
source§fn clone(&self) -> DecodeError
fn clone(&self) -> DecodeError
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for DecodeError
impl Debug for DecodeError
source§impl Display for DecodeError
impl Display for DecodeError
source§impl PartialEq<DecodeError> for DecodeError
impl PartialEq<DecodeError> for DecodeError
source§fn eq(&self, other: &DecodeError) -> bool
fn eq(&self, other: &DecodeError) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.