Struct hickory_proto::rr::resource::RecordRef
source · pub struct RecordRef<'a, R: RecordData> { /* private fields */ }
Expand description
A Record where the RecordData type is already known
Implementations§
source§impl<'a, R: RecordData> RecordRef<'a, R>
impl<'a, R: RecordData> RecordRef<'a, R>
sourcepub fn record_type(&self) -> RecordType
pub fn record_type(&self) -> RecordType
Returns the type of the RecordData in the record
sourcepub fn dns_class(&self) -> DNSClass
pub fn dns_class(&self) -> DNSClass
Returns the DNSClass of the Record, generally IN fro internet
sourcepub fn mdns_cache_flush(&self) -> bool
Available on crate feature mdns
only.
pub fn mdns_cache_flush(&self) -> bool
mdns
only.Returns if the mDNS cache-flush bit is set or not See RFC 6762
Trait Implementations§
Auto Trait Implementations§
impl<'a, R> Freeze for RecordRef<'a, R>
impl<'a, R> RefUnwindSafe for RecordRef<'a, R>where
R: RefUnwindSafe,
impl<'a, R> Send for RecordRef<'a, R>where
R: Sync,
impl<'a, R> Sync for RecordRef<'a, R>where
R: Sync,
impl<'a, R> Unpin for RecordRef<'a, R>
impl<'a, R> UnwindSafe for RecordRef<'a, R>where
R: RefUnwindSafe,
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