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§
Source§impl<'a, R: RecordData> Clone for RecordRef<'a, R>
impl<'a, R: RecordData> Clone for RecordRef<'a, R>
impl<'a, R: RecordData> Copy for RecordRef<'a, 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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)