Enum dns_parser::Error []

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

Error parsing DNS packet

Variants

Invalid compression pointer not pointing backwards when parsing label

Packet is smaller than header size

Packet ihas incomplete data

Wrong (too short or too long) size of RDATA

Packet has non-zero reserved bits

Label in domain name has unknown label format

Query type code is invalid

Query class code is invalid

Type code is invalid

Class code is invalid

Invalid characters encountered while reading label

Invalid characters encountered while reading TXT

Parser is in the wrong state

Additional OPT record found

Trait Implementations

impl Debug for Error
[src]

[src]

Formats the value using the given formatter.

impl Display for Error

Formats the value using the given formatter. Read more

impl Error for Error

A short description of the error. Read more

The lower-level cause of this error, if any. Read more