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
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 Debug for Error
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl Display for Error
impl Display for Error
impl Error for Error
impl Error for Error