pub struct NSEC<'a> {
pub next_name: Name<'a>,
pub type_bit_maps: Vec<NsecTypeBitMap<'a>>,
}Expand description
A NSEC record see rfc4034
Fields§
§next_name: Name<'a>The next owner name in the canonical ordering of the zone
type_bit_maps: Vec<NsecTypeBitMap<'a>>The type bit maps representing the RR types present at the NSEC RR’s owner name
Implementations§
Source§impl<'a> NSEC<'a>
impl<'a> NSEC<'a>
Sourcepub fn from_types(next_name: Name<'a>, types: &[TYPE]) -> Self
pub fn from_types(next_name: Name<'a>, types: &[TYPE]) -> Self
Constructs a new NSEC record with the given next_name and list of TYPEs.
Bitmaps are constructed and windowed according to RFC 4034 Section 4.1.2.
Sourcepub fn contains(&self, ty: TYPE) -> bool
pub fn contains(&self, ty: TYPE) -> bool
Returns true if the type bit maps indicate the presence of ty.
Sourcepub fn types(&self) -> impl Iterator<Item = TYPE> + '_
pub fn types(&self) -> impl Iterator<Item = TYPE> + '_
Iterates over all TYPEs represented in this record’s type bit maps.
Sourcepub fn into_owned<'b>(self) -> NSEC<'b>
pub fn into_owned<'b>(self) -> NSEC<'b>
Transforms the inner data into its owned type
Trait Implementations§
impl<'a> Eq for NSEC<'a>
impl<'a> StructuralPartialEq for NSEC<'a>
Auto Trait Implementations§
impl<'a> Freeze for NSEC<'a>
impl<'a> RefUnwindSafe for NSEC<'a>
impl<'a> Send for NSEC<'a>
impl<'a> Sync for NSEC<'a>
impl<'a> Unpin for NSEC<'a>
impl<'a> UnsafeUnpin for NSEC<'a>
impl<'a> UnwindSafe for NSEC<'a>
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