Enum sawp_dns::header::header_masks
source · [−]#[repr(u16)]
pub enum header_masks {
QUERY_RESPONSE,
OPCODE,
AUTH,
TRUNC,
RECUR_DESIRED,
RECUR_AVAIL,
Z,
AUTH_DATA,
CHECK_DISABLED,
RCODE,
}
Expand description
Masks for extracting DNS header flags
Variants
QUERY_RESPONSE
OPCODE
AUTH
TRUNC
RECUR_DESIRED
RECUR_AVAIL
Z
AUTH_DATA
CHECK_DISABLED
RCODE
Trait Implementations
sourceimpl Binary for header_masks
impl Binary for header_masks
sourceimpl BitAnd<header_masks> for header_masks
impl BitAnd<header_masks> for header_masks
type Output = Flags<header_masks, <header_masks as Flag>::Primitive>
type Output = Flags<header_masks, <header_masks as Flag>::Primitive>
The resulting type after applying the &
operator.
sourceimpl BitOr<header_masks> for header_masks
impl BitOr<header_masks> for header_masks
type Output = Flags<header_masks, <header_masks as Flag>::Primitive>
type Output = Flags<header_masks, <header_masks as Flag>::Primitive>
The resulting type after applying the |
operator.
sourceimpl BitXor<header_masks> for header_masks
impl BitXor<header_masks> for header_masks
type Output = Flags<header_masks, <header_masks as Flag>::Primitive>
type Output = Flags<header_masks, <header_masks as Flag>::Primitive>
The resulting type after applying the ^
operator.
sourceimpl Clone for header_masks
impl Clone for header_masks
sourcefn clone(&self) -> header_masks
fn clone(&self) -> header_masks
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 header_masks
impl Debug for header_masks
sourceimpl Display for header_masks
impl Display for header_masks
sourceimpl Flag for header_masks
impl Flag for header_masks
sourceconst ITEMS: &'static [Self] = &[header_masks::QUERY_RESPONSE, header_masks::OPCODE, header_masks::AUTH,
header_masks::TRUNC, header_masks::RECUR_DESIRED,
header_masks::RECUR_AVAIL, header_masks::Z,
header_masks::AUTH_DATA, header_masks::CHECK_DISABLED,
header_masks::RCODE]
const ITEMS: &'static [Self] = &[header_masks::QUERY_RESPONSE, header_masks::OPCODE, header_masks::AUTH, header_masks::TRUNC, header_masks::RECUR_DESIRED, header_masks::RECUR_AVAIL, header_masks::Z, header_masks::AUTH_DATA, header_masks::CHECK_DISABLED, header_masks::RCODE]
A list of all flag variants in the enum
sourceimpl FromStr for header_masks
impl FromStr for header_masks
sourceimpl Not for header_masks
impl Not for header_masks
type Output = Flags<header_masks, <header_masks as Flag>::Primitive>
type Output = Flags<header_masks, <header_masks as Flag>::Primitive>
The resulting type after applying the !
operator.
sourceimpl PartialEq<Flags<header_masks, <header_masks as Flag>::Primitive>> for header_masks
impl PartialEq<Flags<header_masks, <header_masks as Flag>::Primitive>> for header_masks
sourceimpl PartialEq<header_masks> for header_masks
impl PartialEq<header_masks> for header_masks
impl Copy for header_masks
impl StructuralPartialEq for header_masks
Auto Trait Implementations
impl RefUnwindSafe for header_masks
impl Send for header_masks
impl Sync for header_masks
impl Unpin for header_masks
impl UnwindSafe for header_masks
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)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more