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

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<Error + Send + Sync>),
}

Variants

An object contains the same key multiple times

The signed integer is greater that its max value

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

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

The string is not encoded in UTF-8

Some I/O error

The maximum configured length is exceeded

Fields of TooLong

Values are nested deeper than the configured maximum

The end of file has been encountered unexpectedly

And unexpected type has been encountered

Fields of UnexpectedType

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

Some other error.

Trait Implementations

impl Debug for DecodeError
[src]

Formats the value using the given formatter.

impl Display for DecodeError
[src]

Formats the value using the given formatter. Read more

impl Error for DecodeError
[src]

A short description of the error. Read more

The lower-level cause of this error, if any. Read more

impl From<Error> for DecodeError
[src]

Performs the conversion.

impl From<FromUtf8Error> for DecodeError
[src]

Performs the conversion.

impl From<Utf8Error> for DecodeError
[src]

Performs the conversion.

impl From<ReadSliceError> for DecodeError
[src]

Performs the conversion.