pub struct DnsQueryKind(/* private fields */);Implementations§
Source§impl DnsQueryKind
impl DnsQueryKind
pub const A: Self
pub const Aaaa: Self
pub const Cname: Self
pub const Ns: Self
pub const Soa: Self
pub const None: Self
pub const All: Self
Sourcepub const fn contains(&self, other: Self) -> bool
pub const fn contains(&self, other: Self) -> bool
Checks if the flag set contains the specified flag(s)
Sourcepub const fn intersects(&self, other: Self) -> bool
pub const fn intersects(&self, other: Self) -> bool
Checks if the flag set contains any of the specified flag(s)
Sourcepub const fn set(self, other: Self, value: bool) -> Self
pub const fn set(self, other: Self, value: bool) -> Self
Sets or clears the specified flag(s) based on the passed value
Sourcepub const fn intersection(self, other: Self) -> Self
pub const fn intersection(self, other: Self) -> Self
Returns the intersection of the two flag sets
Sourcepub const fn difference(self, other: Self) -> Self
pub const fn difference(self, other: Self) -> Self
Returns the difference between the two flag sets
Sourcepub const fn symmetric_difference(self, other: Self) -> Self
pub const fn symmetric_difference(self, other: Self) -> Self
Returns the symmetric difference between the two flag sets
Sourcepub const fn complement(self) -> Self
pub const fn complement(self) -> Self
Returns the complement of the flag set
Sourcepub const fn bits_used() -> u8
pub const fn bits_used() -> u8
Returns the number of bits required to represent all defined flags
Sourcepub const fn from_bits_truncate(bits: u8) -> Self
pub const fn from_bits_truncate(bits: u8) -> Self
Creates a flag set from raw bits, truncating any unknown bits
Sourcepub const unsafe fn from_bits_unchecked(bits: u8) -> Self
pub const unsafe fn from_bits_unchecked(bits: u8) -> Self
Creates a flag set from raw bits without checking validity
Trait Implementations§
Source§impl BitAnd for DnsQueryKind
impl BitAnd for DnsQueryKind
Source§impl BitAndAssign for DnsQueryKind
impl BitAndAssign for DnsQueryKind
Source§fn bitand_assign(&mut self, other: Self)
fn bitand_assign(&mut self, other: Self)
Performs the
&= operation. Read moreSource§impl BitOr for DnsQueryKind
impl BitOr for DnsQueryKind
Source§impl BitOrAssign for DnsQueryKind
impl BitOrAssign for DnsQueryKind
Source§fn bitor_assign(&mut self, other: Self)
fn bitor_assign(&mut self, other: Self)
Performs the
|= operation. Read moreSource§impl BitXor for DnsQueryKind
impl BitXor for DnsQueryKind
Source§impl BitXorAssign for DnsQueryKind
impl BitXorAssign for DnsQueryKind
Source§fn bitxor_assign(&mut self, other: Self)
fn bitxor_assign(&mut self, other: Self)
Performs the
^= operation. Read moreSource§impl Clone for DnsQueryKind
impl Clone for DnsQueryKind
Source§fn clone(&self) -> DnsQueryKind
fn clone(&self) -> DnsQueryKind
Returns a duplicate 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 DnsQueryKind
impl Debug for DnsQueryKind
Source§impl Not for DnsQueryKind
impl Not for DnsQueryKind
Source§impl PartialEq for DnsQueryKind
impl PartialEq for DnsQueryKind
Source§impl Sub for DnsQueryKind
impl Sub for DnsQueryKind
Source§impl SubAssign for DnsQueryKind
impl SubAssign for DnsQueryKind
Source§fn sub_assign(&mut self, other: Self)
fn sub_assign(&mut self, other: Self)
Performs the
-= operation. Read moreimpl Copy for DnsQueryKind
impl Eq for DnsQueryKind
impl StructuralPartialEq for DnsQueryKind
Auto Trait Implementations§
impl Freeze for DnsQueryKind
impl RefUnwindSafe for DnsQueryKind
impl Send for DnsQueryKind
impl Sync for DnsQueryKind
impl Unpin for DnsQueryKind
impl UnwindSafe for DnsQueryKind
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more