Enum trust_dns::error::DecodeError [] [src]

pub enum DecodeError {
    ParseUtf8Error(FromUtf8Error),
    UnknownDnsClassValue(u16),
    UnknownDnsClassStr(String),
    UnknownRecordTypeValue(u16),
    UnknownRecordTypeStr(String),
    NoRecordDataType,
    NoRecordDataLength,
    EOF,
}

Variants

ParseUtf8Error(FromUtf8Error)UnknownDnsClassValue(u16)UnknownDnsClassStr(String)UnknownRecordTypeValue(u16)UnknownRecordTypeStr(String)NoRecordDataTypeNoRecordDataLengthEOF

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<FromUtf8Error> for DecodeError
[src]

fn from(err: FromUtf8Error) -> DecodeError

Performs the conversion.