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

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

Variants

IoError

Some I/O error

UnexpectedEOF

The end of file has been encountered unexpectedly

InvalidSimpleValue

The provided Simple value is neither unassigned nor reserved

InvalidValue

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 Display for EncodeError

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

impl Error for EncodeError

fn description(&self) -> &str

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

impl From<Error> for EncodeError

fn from(e: Error) -> EncodeError

impl From<Error> for EncodeError

fn from(e: Error) -> EncodeError

Derived Implementations

impl Debug for EncodeError

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