pub enum DecodeErrorKind {
UnexpectedVariant {
variant: u64,
},
UnexpectedType {
expected: String,
actual: String,
},
WrongLength {
expected: usize,
actual: usize,
},
WrongTupleFieldCount {
expected: usize,
actual: usize,
},
WrongVariantFieldCount {
variant: u64,
expected: usize,
actual: usize,
},
OutOfRange {
value: String,
},
InvalidCbor(MinicborDecodeError),
Custom(String),
}Variants§
UnexpectedVariant
UnexpectedType
WrongLength
WrongTupleFieldCount
WrongVariantFieldCount
OutOfRange
InvalidCbor(MinicborDecodeError)
Custom(String)
Trait Implementations§
Source§impl Debug for DecodeErrorKind
impl Debug for DecodeErrorKind
Source§impl Display for DecodeErrorKind
impl Display for DecodeErrorKind
Source§impl Error for DecodeErrorKind
impl Error for DecodeErrorKind
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
Source§impl PartialEq for DecodeErrorKind
impl PartialEq for DecodeErrorKind
impl Eq for DecodeErrorKind
impl StructuralPartialEq for DecodeErrorKind
Auto Trait Implementations§
impl Freeze for DecodeErrorKind
impl !RefUnwindSafe for DecodeErrorKind
impl Send for DecodeErrorKind
impl Sync for DecodeErrorKind
impl Unpin for DecodeErrorKind
impl !UnwindSafe for DecodeErrorKind
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
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.