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
sourceimpl Binary for ErrorFlags
impl Binary for ErrorFlags
sourceimpl BitAnd<ErrorFlags> for ErrorFlags
impl BitAnd<ErrorFlags> for ErrorFlags
type Output = Flags<ErrorFlags, <ErrorFlags as Flag>::Primitive>
type Output = Flags<ErrorFlags, <ErrorFlags as Flag>::Primitive>
The resulting type after applying the &
operator.
sourceimpl BitOr<ErrorFlags> for ErrorFlags
impl BitOr<ErrorFlags> for ErrorFlags
type Output = Flags<ErrorFlags, <ErrorFlags as Flag>::Primitive>
type Output = Flags<ErrorFlags, <ErrorFlags as Flag>::Primitive>
The resulting type after applying the |
operator.
sourceimpl BitXor<ErrorFlags> for ErrorFlags
impl BitXor<ErrorFlags> for ErrorFlags
type Output = Flags<ErrorFlags, <ErrorFlags as Flag>::Primitive>
type Output = Flags<ErrorFlags, <ErrorFlags as Flag>::Primitive>
The resulting type after applying the ^
operator.
sourceimpl Clone for ErrorFlags
impl Clone for ErrorFlags
sourcefn clone(&self) -> ErrorFlags
fn clone(&self) -> ErrorFlags
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for ErrorFlags
impl Debug for ErrorFlags
sourceimpl Display for ErrorFlags
impl Display for ErrorFlags
sourceimpl Flag for ErrorFlags
impl Flag for ErrorFlags
sourceconst ITEMS: &'static [Self] = &[ErrorFlags::ExtraOptRr, ErrorFlags::UnknownOpcode, ErrorFlags::UnknownRcode,
ErrorFlags::UnknownRclass, ErrorFlags::UnknownRtype,
ErrorFlags::EdnsParseFail, ErrorFlags::DnsLabelExceedsMaxLen,
ErrorFlags::DnsNameExceedsMaxLen,
ErrorFlags::DnsNameInvalidCompression]
const ITEMS: &'static [Self] = &[ErrorFlags::ExtraOptRr, ErrorFlags::UnknownOpcode, ErrorFlags::UnknownRcode, ErrorFlags::UnknownRclass, ErrorFlags::UnknownRtype, ErrorFlags::EdnsParseFail, ErrorFlags::DnsLabelExceedsMaxLen, ErrorFlags::DnsNameExceedsMaxLen, ErrorFlags::DnsNameInvalidCompression]
A list of all flag variants in the enum
sourceimpl FromStr for ErrorFlags
impl FromStr for ErrorFlags
sourceimpl Not for ErrorFlags
impl Not for ErrorFlags
type Output = Flags<ErrorFlags, <ErrorFlags as Flag>::Primitive>
type Output = Flags<ErrorFlags, <ErrorFlags as Flag>::Primitive>
The resulting type after applying the !
operator.
sourceimpl PartialEq<ErrorFlags> for ErrorFlags
impl PartialEq<ErrorFlags> for ErrorFlags
sourceimpl PartialEq<Flags<ErrorFlags, <ErrorFlags as Flag>::Primitive>> for ErrorFlags
impl PartialEq<Flags<ErrorFlags, <ErrorFlags as Flag>::Primitive>> for ErrorFlags
impl Copy for ErrorFlags
impl StructuralPartialEq for ErrorFlags
Auto Trait Implementations
impl RefUnwindSafe for ErrorFlags
impl Send for ErrorFlags
impl Sync for ErrorFlags
impl Unpin for ErrorFlags
impl UnwindSafe for ErrorFlags
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
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more