pub struct LocalEntry {
pub value: StoredValue,
pub inserted_ms: i64,
pub ttl_ms: i64,
}Expand description
One process-local entry with its insertion-time TTL.
Fields§
§value: StoredValueThe cached value, shared by reference with every reader.
inserted_ms: i64Whole-millisecond elapsed reading at insertion.
ttl_ms: i64Lifetime in whole milliseconds; the entry is expired once
now_ms - inserted_ms >= ttl_ms.
Trait Implementations§
Source§impl Clone for LocalEntry
impl Clone for LocalEntry
Source§fn clone(&self) -> LocalEntry
fn clone(&self) -> LocalEntry
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 !RefUnwindSafe for LocalEntry
impl !UnwindSafe for LocalEntry
impl Freeze for LocalEntry
impl Send for LocalEntry
impl Sync for LocalEntry
impl Unpin for LocalEntry
impl UnsafeUnpin for LocalEntry
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