pub struct PolicyEntry {
pub key: String,
pub insert_order: u64,
pub last_access: u64,
pub access_count: u64,
}Expand description
An entry tracked by the cache policy.
Fields§
§key: String§insert_order: u64§last_access: u64§access_count: u64Trait Implementations§
Source§impl Clone for PolicyEntry
impl Clone for PolicyEntry
Source§fn clone(&self) -> PolicyEntry
fn clone(&self) -> PolicyEntry
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 PolicyEntry
impl RefUnwindSafe for PolicyEntry
impl Send for PolicyEntry
impl Sync for PolicyEntry
impl Unpin for PolicyEntry
impl UnsafeUnpin for PolicyEntry
impl UnwindSafe for PolicyEntry
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