pub struct NegativeCacheEntry {
pub cached_at: Instant,
pub ttl: Duration,
}Expand description
Negative cache entry - remembers that something was not found
Fields§
§cached_at: InstantWhen this entry was cached
ttl: DurationTTL for negative cache (usually shorter than positive)
Implementations§
Trait Implementations§
Source§impl Clone for NegativeCacheEntry
impl Clone for NegativeCacheEntry
Source§fn clone(&self) -> NegativeCacheEntry
fn clone(&self) -> NegativeCacheEntry
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for NegativeCacheEntry
impl RefUnwindSafe for NegativeCacheEntry
impl Send for NegativeCacheEntry
impl Sync for NegativeCacheEntry
impl Unpin for NegativeCacheEntry
impl UnsafeUnpin for NegativeCacheEntry
impl UnwindSafe for NegativeCacheEntry
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