Enum eetf::DecodeError
[−]
[src]
pub enum DecodeError { Io(Error), UnsupportedVersion { version: u8, }, UnknownTag { tag: u8, }, UnexpectedType { value: Term, expected: String, }, OutOfRange { value: i32, range: Range<i32>, }, }
Errors which can occur when decoding a term
Variants
Io(Error)
UnsupportedVersion
Fields of UnsupportedVersion
version: u8 |
UnknownTag
Fields of UnknownTag
tag: u8 |
UnexpectedType
Fields of UnexpectedType
value: Term | |
expected: String |
OutOfRange
Fields of OutOfRange
value: i32 | |
range: Range<i32> |
Trait Implementations
impl Debug for DecodeError
[src]
impl Display for DecodeError
[src]
impl Error for DecodeError
[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 DecodeError
[src]
fn from(err: Error) -> DecodeError
Performs the conversion.