Enum cbor::ReadError [] [src]

pub enum ReadError {
    TypeMismatch {
        expected: Type,
        got: Type,
    },
    InvalidAddValue {
        ty: Type,
        val: u8,
    },
    Unassigned {
        major: u8,
        add: u8,
    },
    Reserved {
        major: u8,
        add: u8,
    },
    Other(String),
}

An error produced by reading CBOR data.

Variants

An error for when the expected type does not match the received type.

Fields of TypeMismatch

Expected CBOR type.

Received CBOR type.

When the additional information is inconsistent with the major type.

Fields of InvalidAddValue

CBOR type.

Additional information value.

The value found is unassigned.

Fields of Unassigned

CBOR major type value.

Additional information value.

The value found is reserved.

Fields of Reserved

CBOR major type value.

Additional information value.

Some other error occurred.

Trait Implementations

impl Clone for ReadError
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Debug for ReadError
[src]

Formats the value using the given formatter.

impl Display for ReadError
[src]

Formats the value using the given formatter. Read more