Enum sawp_dns::ErrorFlags
source · #[repr(u16)]
pub enum ErrorFlags {
ExtraOptRr,
UnknownOpcode,
UnknownRcode,
UnknownRclass,
UnknownRtype,
EdnsParseFail,
DnsLabelExceedsMaxLen,
DnsNameExceedsMaxLen,
DnsNameInvalidCompression,
}
Expand description
Error flags raised while parsing DNS - to be used in the returned Message
Variants§
ExtraOptRr
more than one pseudo-RR exists - EDNS specs limit OPT RRs to <=1
UnknownOpcode
invalid opcode
UnknownRcode
invalid response code
UnknownRclass
invalid record class
UnknownRtype
invalid record type
EdnsParseFail
an option code used in a pseudo-RR is invalid
DnsLabelExceedsMaxLen
some label exceeds the maximum length of 63
DnsNameExceedsMaxLen
name len > 255 - name will be truncated to max_domain_len
DnsNameInvalidCompression
a ptr either points to an invalid location or is self-referential
Trait Implementations§
source§impl Binary for ErrorFlags
impl Binary for ErrorFlags
source§impl BitAnd<ErrorFlags> for ErrorFlags
impl BitAnd<ErrorFlags> for ErrorFlags
source§impl BitOr<ErrorFlags> for ErrorFlags
impl BitOr<ErrorFlags> for ErrorFlags
source§impl BitXor<ErrorFlags> for ErrorFlags
impl BitXor<ErrorFlags> for ErrorFlags
source§impl Clone for ErrorFlags
impl Clone for ErrorFlags
source§fn clone(&self) -> ErrorFlags
fn clone(&self) -> ErrorFlags
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for ErrorFlags
impl Debug for ErrorFlags
source§impl Display for ErrorFlags
impl Display for ErrorFlags
source§impl Flag for ErrorFlags
impl Flag for ErrorFlags
source§impl FromStr for ErrorFlags
impl FromStr for ErrorFlags
source§impl Not for ErrorFlags
impl Not for ErrorFlags
source§impl PartialEq<ErrorFlags> for ErrorFlags
impl PartialEq<ErrorFlags> for ErrorFlags
source§fn eq(&self, other: &ErrorFlags) -> bool
fn eq(&self, other: &ErrorFlags) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.