pub struct InMemoryEvictionReport {
pub entries: u64,
pub bytes: u64,
pub max_age_ticks: u64,
pub reason: InMemoryEvictionReason,
}Expand description
Structured eviction report for one in-memory cache shard.
Fields§
§entries: u64Number of entries removed by the eviction decision.
bytes: u64Bytes removed by the eviction decision.
max_age_ticks: u64Maximum age of an evicted entry in shard clock ticks.
reason: InMemoryEvictionReasonWhy eviction happened.
Trait Implementations§
Source§impl Clone for InMemoryEvictionReport
impl Clone for InMemoryEvictionReport
Source§fn clone(&self) -> InMemoryEvictionReport
fn clone(&self) -> InMemoryEvictionReport
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 moreimpl Copy for InMemoryEvictionReport
Source§impl Debug for InMemoryEvictionReport
impl Debug for InMemoryEvictionReport
impl Eq for InMemoryEvictionReport
Source§impl PartialEq for InMemoryEvictionReport
impl PartialEq for InMemoryEvictionReport
Source§fn eq(&self, other: &InMemoryEvictionReport) -> bool
fn eq(&self, other: &InMemoryEvictionReport) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for InMemoryEvictionReport
Auto Trait Implementations§
impl Freeze for InMemoryEvictionReport
impl RefUnwindSafe for InMemoryEvictionReport
impl Send for InMemoryEvictionReport
impl Sync for InMemoryEvictionReport
impl Unpin for InMemoryEvictionReport
impl UnsafeUnpin for InMemoryEvictionReport
impl UnwindSafe for InMemoryEvictionReport
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.