pub struct Metadata { /* private fields */ }Expand description
Metadata stored alongside a cached value.
Implementations§
Source§impl Metadata
impl Metadata
Sourcepub fn logical_expiration(&self) -> Timestamp
pub fn logical_expiration(&self) -> Timestamp
The logical-expiration (freshness) boundary.
Sourcepub fn physical_expiration(&self) -> Timestamp
pub fn physical_expiration(&self) -> Timestamp
The physical-expiration (fail-safe) boundary.
The tags attached to this entry.
Sourcepub fn last_modified(&self) -> Option<Timestamp>
pub fn last_modified(&self) -> Option<Timestamp>
The last-modified timestamp, if any.
Sourcepub fn is_from_fail_safe(&self) -> bool
pub fn is_from_fail_safe(&self) -> bool
true if this value came from a fail-safe activation.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Metadata
impl RefUnwindSafe for Metadata
impl Send for Metadata
impl Sync for Metadata
impl Unpin for Metadata
impl UnsafeUnpin for Metadata
impl UnwindSafe for Metadata
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