pub struct CacheEntry<I: Instant> { /* private fields */ }Available on crate features
alloc or no-atomic or std only.Expand description
One cached resource record.
Implementations§
Source§impl<I: Instant> CacheEntry<I>
impl<I: Instant> CacheEntry<I>
Sourcepub const fn rtype(&self) -> ResourceType
pub const fn rtype(&self) -> ResourceType
The record’s type.
Sourcepub const fn rclass(&self) -> ResourceClass
pub const fn rclass(&self) -> ResourceClass
The record’s class.
Sourcepub fn rdata_slice(&self) -> &[u8] ⓘ
pub fn rdata_slice(&self) -> &[u8] ⓘ
The record’s raw rdata bytes.
Sourcepub fn expires_at(&self) -> I
pub fn expires_at(&self) -> I
Absolute expiration deadline.
Sourcepub fn received_at(&self) -> I
pub fn received_at(&self) -> I
Wall instant at which this record was last received / refreshed.
Trait Implementations§
Auto Trait Implementations§
impl<I> !Freeze for CacheEntry<I>
impl<I> RefUnwindSafe for CacheEntry<I>where
I: RefUnwindSafe,
impl<I> Send for CacheEntry<I>where
I: Send,
impl<I> Sync for CacheEntry<I>where
I: Sync,
impl<I> Unpin for CacheEntry<I>where
I: Unpin,
impl<I> UnsafeUnpin for CacheEntry<I>where
I: UnsafeUnpin,
impl<I> UnwindSafe for CacheEntry<I>where
I: UnwindSafe,
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