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

HeaderTooShort
UnexpectedEOF
WrongRdataLength
ReservedBitsAreNonZero
UnknownLabelFormat
InvalidQueryType
InvalidQueryClass
InvalidType
InvalidClass
LabelIsNotAscii
WrongState

Trait Implementations

impl Display for Error

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

impl Error for Error

fn description(&self) -> &str

fn cause(&self) -> Option<&Error>

fn type_id(&self) -> TypeId where Self: 'static

Derived Implementations

impl Debug for Error

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