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

version: u8
UnknownTag

Fields

tag: u8
UnexpectedType

Fields

value: Term
expected: String
OutOfRange

Fields

value: i32
range: Range<i32>

Trait Implementations

impl Debug for DecodeError
[src]

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

Formats the value using the given formatter.

impl Display for DecodeError
[src]

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

Formats the value using the given formatter.

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.