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

pub enum EncodeError {
    IoError(Error),
    UnexpectedEOF,
    InvalidSimpleValue(Simple),
    InvalidValue(Value),
}

Variants

IoError(Error)

Some I/O error

UnexpectedEOF

The end of file has been encountered unexpectedly

InvalidSimpleValue(Simple)

The provided Simple value is neither unassigned nor reserved

InvalidValue(Value)

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

Trait Implementations

impl Debug for EncodeError
[src]

fn fmt(&self, __arg_0: &mut Formatter) -> Result

Formats the value using the given formatter.

impl Display for EncodeError
[src]

fn fmt(&self, f: &mut Formatter) -> Result<()Error>

Formats the value using the given formatter.

impl Error for EncodeError
[src]

fn description(&self) -> &str

A short description of the error. Read more

fn cause(&self) -> Option<&Error>

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

impl From<Error> for EncodeError
[src]

fn from(e: Error) -> EncodeError

Performs the conversion.