Enum dns_parser::Error []

pub enum Error {
    HeaderTooShort,
    UnexpectedEOF,
    WrongRdataLength,
    ReservedBitsAreNonZero,
    UnknownLabelFormat,
    InvalidQueryType(u16),
    InvalidQueryClass(u16),
    InvalidType(u16),
    InvalidClass(u16),
    LabelIsNotAscii,
    WrongState,
}

Error parsing DNS packet

Variants

HeaderTooShortUnexpectedEOFWrongRdataLengthReservedBitsAreNonZeroUnknownLabelFormatInvalidQueryType(u16)InvalidQueryClass(u16)InvalidType(u16)InvalidClass(u16)LabelIsNotAsciiWrongState

Trait Implementations

impl Debug for Error
[src]

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

Formats the value using the given formatter.

impl Display for Error

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

Formats the value using the given formatter.

impl Error for Error

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