pub struct DnsTypeBitmaps { /* private fields */ }Expand description
A DNSSEC “Type Bit Maps” field: the set of RR types present at an owner name, as carried by NSEC (RFC 4034 Section 4.1.2) and NSEC3 (RFC 5155 Section 3.2.1).
On the wire the field is a sequence of (Window Block #, Bitmap Length, Bitmap) triples in increasing window order. Each window covers 256 RR
types (the low 8 bits of the type for that window block); a set bit means
the corresponding type is present.
This is a pure wire structure: it preserves the exact set of present type values, including unknown or unassigned codepoints, and re-encodes them deterministically. It performs no resolver, validation, or trust logic.
Implementations§
Source§impl DnsTypeBitmaps
impl DnsTypeBitmaps
Sourcepub fn from_types<I>(types: I) -> Selfwhere
I: IntoIterator<Item = u16>,
pub fn from_types<I>(types: I) -> Selfwhere
I: IntoIterator<Item = u16>,
Build a type-bitmaps field from an explicit set of RR type values.
Duplicate values are collapsed and the set is sorted so the encoded windows are deterministic. Unknown or unassigned type values are preserved verbatim; nothing is rejected here.
Trait Implementations§
Source§impl Clone for DnsTypeBitmaps
impl Clone for DnsTypeBitmaps
Source§fn clone(&self) -> DnsTypeBitmaps
fn clone(&self) -> DnsTypeBitmaps
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for DnsTypeBitmaps
impl Debug for DnsTypeBitmaps
Source§impl Default for DnsTypeBitmaps
impl Default for DnsTypeBitmaps
Source§fn default() -> DnsTypeBitmaps
fn default() -> DnsTypeBitmaps
impl Eq for DnsTypeBitmaps
Source§impl Hash for DnsTypeBitmaps
impl Hash for DnsTypeBitmaps
Source§impl PartialEq for DnsTypeBitmaps
impl PartialEq for DnsTypeBitmaps
Source§fn eq(&self, other: &DnsTypeBitmaps) -> bool
fn eq(&self, other: &DnsTypeBitmaps) -> bool
self and other values to be equal, and is used by ==.