Enum cbor::encoder::EncodeError
[−]
[src]
pub enum EncodeError {
IoError(Error),
UnexpectedEOF,
InvalidSimpleValue(Simple),
InvalidValue(Value),
Other(Box<Error + Send + Sync>),
}Variants
IoError(Error)Some I/O error
UnexpectedEOFThe 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.
Other(Box<Error + Send + Sync>)Some other error.
Trait Implementations
impl Debug for EncodeError[src]
impl Display for EncodeError[src]
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.