Enum dns_message_parser::DecodeError[][src]

pub enum DecodeError {
Show 44 variants NotEnoughBytes(usize, usize), TooManyBytes(usize, usize), DnsPacketTooBig(usize), Opcode(u8), ZNotZeroes(u8), RCode(u8), Type(u16), Class(u16), QType(u16), QClass(u16), Utf8Error(Utf8Error), DomainNameError(DomainNameError), NotYetImplemented(Type), FromHexError(FromHexError), Offset(usize), AClass(Class), WKSClass(Class), AFSDBSubtype(u16), PSDNAddressError(PSDNAddressError), ISDNError(ISDNError), GPOS, AAAAClass(Class), OPTDomainName(DomainName), OPTZero(u8), EDNSOptionCode(u16), AddressError(AddressError), APLClass(Class), CookieError(CookieError), EcsAddressNumber(u16), EcsTooBigIpv4Address(usize), EcsTooBigIpv6Address(usize), CookieLength(usize), SSHFPAlgorithm(u8), SSHFPType(u8), AlgorithmType(u8), DigestType(u8), DNSKEYZeroFlags(u16), DNSKEYProtocol(u8), MaxRecursion(usize), RemainingBytes(usize, Dns), PaddingZero(u8), PaddingLength(usize), TagError(TagError), ECHLengthMismatch(usize, usize),
}

Variants

NotEnoughBytes

Tuple Fields of NotEnoughBytes

0: usize1: usize
TooManyBytes

Tuple Fields of TooManyBytes

0: usize1: usize
DnsPacketTooBig

Tuple Fields of DnsPacketTooBig

0: usize
Opcode

Tuple Fields of Opcode

0: u8
ZNotZeroes

Tuple Fields of ZNotZeroes

0: u8
RCode

Tuple Fields of RCode

0: u8
Type

Tuple Fields of Type

0: u16
Class

Tuple Fields of Class

0: u16
QType

Tuple Fields of QType

0: u16
QClass

Tuple Fields of QClass

0: u16
Utf8Error

Tuple Fields of Utf8Error

0: Utf8Error
DomainNameError

Tuple Fields of DomainNameError

0: DomainNameError
NotYetImplemented

Tuple Fields of NotYetImplemented

0: Type
FromHexError

Tuple Fields of FromHexError

0: FromHexError
Offset

Tuple Fields of Offset

0: usize
AClass

Tuple Fields of AClass

0: Class
WKSClass

Tuple Fields of WKSClass

0: Class
AFSDBSubtype

Tuple Fields of AFSDBSubtype

0: u16
PSDNAddressError

Tuple Fields of PSDNAddressError

0: PSDNAddressError
ISDNError

Tuple Fields of ISDNError

0: ISDNError
GPOS
AAAAClass

Tuple Fields of AAAAClass

0: Class
OPTDomainName

Tuple Fields of OPTDomainName

0: DomainName
OPTZero

Tuple Fields of OPTZero

0: u8
EDNSOptionCode

Tuple Fields of EDNSOptionCode

0: u16
AddressError

Tuple Fields of AddressError

0: AddressError
APLClass

Tuple Fields of APLClass

0: Class
CookieError

Tuple Fields of CookieError

0: CookieError
EcsAddressNumber

Tuple Fields of EcsAddressNumber

0: u16
EcsTooBigIpv4Address

Tuple Fields of EcsTooBigIpv4Address

0: usize
EcsTooBigIpv6Address

Tuple Fields of EcsTooBigIpv6Address

0: usize
CookieLength

Tuple Fields of CookieLength

0: usize
SSHFPAlgorithm

Tuple Fields of SSHFPAlgorithm

0: u8
SSHFPType

Tuple Fields of SSHFPType

0: u8
AlgorithmType

Tuple Fields of AlgorithmType

0: u8
DigestType

Tuple Fields of DigestType

0: u8
DNSKEYZeroFlags

Tuple Fields of DNSKEYZeroFlags

0: u16
DNSKEYProtocol

Tuple Fields of DNSKEYProtocol

0: u8
MaxRecursion

Tuple Fields of MaxRecursion

0: usize
RemainingBytes

Tuple Fields of RemainingBytes

0: usize1: Dns
PaddingZero

Tuple Fields of PaddingZero

0: u8
PaddingLength

Tuple Fields of PaddingLength

0: usize
TagError

Tuple Fields of TagError

0: TagError
ECHLengthMismatch

Tuple Fields of ECHLengthMismatch

0: usize1: usize

Trait Implementations

Formats the value using the given formatter. Read more

Formats the value using the given formatter. Read more

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

🔬 This is a nightly-only experimental API. (backtrace)

Returns a stack backtrace, if available, of where this error occurred. Read more

👎 Deprecated since 1.42.0:

use the Display impl or to_string()

👎 Deprecated since 1.33.0:

replaced by Error::source, which can support downcasting

Performs the conversion.

Performs the conversion.

Performs the conversion.

Performs the conversion.

Performs the conversion.

Performs the conversion.

Performs the conversion.

Performs the conversion.

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

Converts the given value to a String. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.