Enum dns_parser::Error[][src]

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

BadPointer

Invalid compression pointer not pointing backwards when parsing label

HeaderTooShort

Packet is smaller than header size

UnexpectedEOF

Packet ihas incomplete data

WrongRdataLength

Wrong (too short or too long) size of RDATA

ReservedBitsAreNonZero

Packet has non-zero reserved bits

UnknownLabelFormat

Label in domain name has unknown label format

InvalidQueryType(u16)

Query type code is invalid

InvalidQueryClass(u16)

Query class code is invalid

InvalidType(u16)

Type code is invalid

InvalidClass(u16)

Class code is invalid

LabelIsNotAscii

Invalid characters encountered while reading label

TxtDataIsNotUTF8(Utf8Error)

Invalid characters encountered while reading TXT

WrongState

Parser is in the wrong state

AdditionalOPT

Additional OPT record found

Trait Implementations

impl Debug for Error[src]

impl Display for Error[src]

impl Error for Error[src]

Auto Trait Implementations

impl RefUnwindSafe for Error

impl Send for Error

impl Sync for Error

impl Unpin for Error

impl UnwindSafe for Error

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.