Enum dns_message_parser::DecodeError
source · [−]pub enum DecodeError {
Show 46 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),
LabelError(LabelError),
DomainNameError(DomainNameError),
NotYetImplemented(Type),
FromHexError(FromHexError),
Offset(usize),
AClass(Class),
WKSClass(Class),
TXTEmpty,
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(usize, usize)
TooManyBytes(usize, usize)
DnsPacketTooBig(usize)
Opcode(u8)
ZNotZeroes(u8)
RCode(u8)
Type(u16)
Class(u16)
QType(u16)
QClass(u16)
Utf8Error(Utf8Error)
LabelError(LabelError)
DomainNameError(DomainNameError)
NotYetImplemented(Type)
FromHexError(FromHexError)
Offset(usize)
AClass(Class)
WKSClass(Class)
TXTEmpty
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)
Trait Implementations
sourceimpl Debug for DecodeError
impl Debug for DecodeError
sourceimpl Display for DecodeError
impl Display for DecodeError
sourceimpl Error for DecodeError
impl Error for DecodeError
sourcefn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
The lower-level source of this error, if any. Read more
1.0.0 · sourcefn description(&self) -> &str
fn description(&self) -> &str
👎 Deprecated since 1.42.0:
use the Display impl or to_string()
sourceimpl From<AddressError> for DecodeError
impl From<AddressError> for DecodeError
sourcefn from(source: AddressError) -> Self
fn from(source: AddressError) -> Self
Converts to this type from the input type.
sourceimpl From<CookieError> for DecodeError
impl From<CookieError> for DecodeError
sourcefn from(source: CookieError) -> Self
fn from(source: CookieError) -> Self
Converts to this type from the input type.
sourceimpl From<DomainNameError> for DecodeError
impl From<DomainNameError> for DecodeError
sourcefn from(source: DomainNameError) -> Self
fn from(source: DomainNameError) -> Self
Converts to this type from the input type.
sourceimpl From<FromHexError> for DecodeError
impl From<FromHexError> for DecodeError
sourcefn from(source: FromHexError) -> Self
fn from(source: FromHexError) -> Self
Converts to this type from the input type.
sourceimpl From<ISDNError> for DecodeError
impl From<ISDNError> for DecodeError
sourceimpl From<LabelError> for DecodeError
impl From<LabelError> for DecodeError
sourcefn from(source: LabelError) -> Self
fn from(source: LabelError) -> Self
Converts to this type from the input type.
sourceimpl From<PSDNAddressError> for DecodeError
impl From<PSDNAddressError> for DecodeError
sourcefn from(source: PSDNAddressError) -> Self
fn from(source: PSDNAddressError) -> Self
Converts to this type from the input type.
sourceimpl From<TagError> for DecodeError
impl From<TagError> for DecodeError
sourceimpl From<Utf8Error> for DecodeError
impl From<Utf8Error> for DecodeError
sourceimpl PartialEq<DecodeError> for DecodeError
impl PartialEq<DecodeError> for DecodeError
sourcefn eq(&self, other: &DecodeError) -> bool
fn eq(&self, other: &DecodeError) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &DecodeError) -> bool
fn ne(&self, other: &DecodeError) -> bool
This method tests for !=
.
impl StructuralPartialEq for DecodeError
Auto Trait Implementations
impl RefUnwindSafe for DecodeError
impl Send for DecodeError
impl Sync for DecodeError
impl Unpin for DecodeError
impl UnwindSafe for DecodeError
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more