pub struct NSecTypeMask(/* private fields */);Expand description
A mask used in NSec and NSec3 records which indicates the resource record types which
exist at the (hash of the) name described in Record::name.
Implementations§
Source§impl NSecTypeMask
impl NSecTypeMask
Sourcepub fn from_types(types: &[u16]) -> Self
pub fn from_types(types: &[u16]) -> Self
Builds a new type mask with the given types set
Sourcepub fn contains_type(&self, ty: u16) -> bool
pub fn contains_type(&self, ty: u16) -> bool
Checks if the given type (from Record::ty) is set, indicating a record of this type
exists.
Trait Implementations§
Source§impl Clone for NSecTypeMask
impl Clone for NSecTypeMask
Source§fn clone(&self) -> NSecTypeMask
fn clone(&self) -> NSecTypeMask
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 NSecTypeMask
impl Debug for NSecTypeMask
Source§impl Hash for NSecTypeMask
impl Hash for NSecTypeMask
Source§impl Ord for NSecTypeMask
impl Ord for NSecTypeMask
Source§fn cmp(&self, other: &NSecTypeMask) -> Ordering
fn cmp(&self, other: &NSecTypeMask) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for NSecTypeMask
impl PartialEq for NSecTypeMask
Source§impl PartialOrd for NSecTypeMask
impl PartialOrd for NSecTypeMask
impl Eq for NSecTypeMask
impl StructuralPartialEq for NSecTypeMask
Auto Trait Implementations§
impl Freeze for NSecTypeMask
impl RefUnwindSafe for NSecTypeMask
impl Send for NSecTypeMask
impl Sync for NSecTypeMask
impl Unpin for NSecTypeMask
impl UnwindSafe for NSecTypeMask
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