pub struct RecordSet { /* private fields */ }Expand description
This is a representation of the record set as described in RFC 2136.
A domain name identifies a node within the domain name space tree structure. Each node has a set (possibly empty) of Resource Records (RRs). All RRs having the same NAME, CLASS and TYPE are called a Resource Record Set (RRset
Implementations§
Source§impl RecordSet
impl RecordSet
pub fn new(name: Name, data: RsData) -> Self
pub fn name(&self) -> &Name
pub fn dns_class(&self) -> DNSClass
pub fn record_type(&self) -> RecordType
pub fn to_rrset(&self, ttl: u32) -> RecordSet
pub fn data(&self) -> &RsData
pub fn iter_data(&self) -> RsDataIter<'_> ⓘ
pub fn contains(&self, entry: &RData) -> bool
pub fn is_empty(&self) -> bool
pub fn is_subset(&self, other: &RecordSet) -> bool
Trait Implementations§
impl Eq for RecordSet
impl StructuralPartialEq for RecordSet
Auto Trait Implementations§
impl Freeze for RecordSet
impl RefUnwindSafe for RecordSet
impl Send for RecordSet
impl Sync for RecordSet
impl Unpin for RecordSet
impl UnwindSafe for RecordSet
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