Enum cbor::CborError [] [src]

pub enum CborError {
    Io(Error),
    Decode(ReadError),
    Encode(WriteError),
    AtOffset {
        kind: ReadError,
        offset: usize,
    },
    UnexpectedEOF,
}

Errors that can be produced by a CBOR operation.

Variants

An error as a result of an underlying IO operation.

An error from the type based decoder.

An error from the type based encoder.

An error reading CBOR at a particular offset.

For example, if the data in "additional information" is inconsistent with the major type.

Fields of AtOffset

The exact read error.

The byte offset at which the error occurred.

EOF is found but more bytes were expected to decode the next data item.

EOF is triggered when the underlying reader returns 0 bytes.

Trait Implementations

impl Debug for CborError
[src]

Formats the value using the given formatter.

impl From<Error> for CborError
[src]

Performs the conversion.

impl Error for CborError
[src]

A short description of the error. Read more

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

impl Display for CborError
[src]

Formats the value using the given formatter. Read more