[][src]Enum cbor::decoder::DecodeError

pub enum DecodeError {
    DuplicateKey(Key),
    IntOverflow(u64),
    InvalidKey(Value),
    InvalidTag(Value),
    InvalidUtf8(Utf8Error),
    IoError(Error),
    TooLong {
        max: usize,
        actual: u64,
    },
    TooNested,
    UnexpectedEOF,
    UnexpectedType {
        datatype: Type,
        info: u8,
    },
    UnexpectedBreak,
    Other(Box<dyn Error + Send + Sync>),
}

Variants

DuplicateKey(Key)

An object contains the same key multiple times

IntOverflow(u64)

The signed integer is greater that its max value

InvalidKey(Value)

The decoded Value can not serve as a Key in an object

InvalidTag(Value)

The type of Value is not what is expected for a Tag

InvalidUtf8(Utf8Error)

The string is not encoded in UTF-8

IoError(Error)

Some I/O error

TooLong

The maximum configured length is exceeded

Fields of TooLong

max: usizeactual: u64
TooNested

Values are nested deeper than the configured maximum

UnexpectedEOF

The end of file has been encountered unexpectedly

UnexpectedType

An unexpected type has been encountered

Fields of UnexpectedType

datatype: Typeinfo: u8
UnexpectedBreak

A break was encountered at some unexpected point while decoding an indefinite object.

Other(Box<dyn Error + Send + Sync>)

Some other error.

Trait Implementations

impl Debug for DecodeError[src]

impl Display for DecodeError[src]

impl Error for DecodeError[src]

impl From<Error> for DecodeError[src]

impl From<FromUtf8Error> for DecodeError[src]

impl From<ReadSliceError> for DecodeError[src]

impl From<Utf8Error> for DecodeError[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.