pub struct StoredMemory {
pub item: MemoryItem,
pub created_at: SystemTime,
pub last_access_at: SystemTime,
pub access_count: u64,
}Expand description
A memory with its lifecycle bookkeeping.
Fields§
§item: MemoryItemThe stored item.
created_at: SystemTimeFirst write time.
last_access_at: SystemTimeMost recent access (put/get/search hit).
access_count: u64Number of accesses since the entry was created.
Trait Implementations§
Source§impl Clone for StoredMemory
impl Clone for StoredMemory
Source§fn clone(&self) -> StoredMemory
fn clone(&self) -> StoredMemory
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 Freeze for StoredMemory
impl RefUnwindSafe for StoredMemory
impl Send for StoredMemory
impl Sync for StoredMemory
impl Unpin for StoredMemory
impl UnsafeUnpin for StoredMemory
impl UnwindSafe for StoredMemory
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