pub struct RecordRef<'a, R: RecordData> { /* private fields */ }
Expand description
A Record where the RecordData type is already known
Implementations§
Source§impl<R: RecordData> RecordRef<'_, R>
impl<R: RecordData> RecordRef<'_, 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§
Source§impl<R: RecordData> Clone for RecordRef<'_, R>
impl<R: RecordData> Clone for RecordRef<'_, R>
impl<R: RecordData> Copy for RecordRef<'_, R>
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