Enum cbor::encoder::EncodeError [] [src]

pub enum EncodeError {
    IoError(Error),
    UnexpectedEOF,
    InvalidSimpleValue(Simple),
    InvalidValue(Value),
    Other(Box<Error + Send + Sync>),
}

Variants

Some I/O error

The end of file has been encountered unexpectedly

The provided Simple value is neither unassigned nor reserved

Certain values (e.g. Value::Break) are not legal to encode as independent units. Attempting to do so will trigger this error.

Some other error.

Trait Implementations

impl Debug for EncodeError
[src]

Formats the value using the given formatter.

impl Display for EncodeError
[src]

Formats the value using the given formatter.

impl Error for EncodeError
[src]

A short description of the error. Read more

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

impl From<Error> for EncodeError
[src]

Performs the conversion.