pub enum DecodeErrorKind {
Show 19 variants
InputLimitExceeded {
limit: usize,
actual: usize,
},
UnexpectedEof,
BadMagic {
expected: u8,
actual: u8,
},
UnsupportedVersion {
version: u8,
},
MalformedInteger,
NonCanonicalInteger,
IntegerOverflow,
InvalidConstantTag {
tag: u8,
},
NonCanonicalNumber {
bits: u64,
},
InvalidUtf8,
InvalidBigInt,
InvalidFunctionFlags {
bits: u8,
},
InvalidUnaryOp {
tag: u8,
},
InvalidBinaryOp {
tag: u8,
},
InvalidIteratorKind {
tag: u8,
},
InvalidAccessorKind {
tag: u8,
},
InvalidOpcode {
opcode: u8,
},
LimitExceeded {
field: &'static str,
limit: u64,
actual: u64,
},
TrailingBytes {
count: usize,
},
}Variants§
InputLimitExceeded
UnexpectedEof
BadMagic
UnsupportedVersion
MalformedInteger
NonCanonicalInteger
IntegerOverflow
InvalidConstantTag
NonCanonicalNumber
InvalidUtf8
InvalidBigInt
InvalidFunctionFlags
InvalidUnaryOp
InvalidBinaryOp
InvalidIteratorKind
InvalidAccessorKind
InvalidOpcode
LimitExceeded
TrailingBytes
Trait Implementations§
Source§impl Clone for DecodeErrorKind
impl Clone for DecodeErrorKind
Source§fn clone(&self) -> DecodeErrorKind
fn clone(&self) -> DecodeErrorKind
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 moreSource§impl Debug for DecodeErrorKind
impl Debug for DecodeErrorKind
impl Eq for DecodeErrorKind
Source§impl PartialEq for DecodeErrorKind
impl PartialEq 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 UnsafeUnpin 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