pub struct Evicted {
pub key: String,
pub entry: Arc<Entry>,
pub score: f64,
pub bytes: usize,
}Expand description
A key chosen for eviction, and why.
Fields§
§key: StringThe key that was evicted.
entry: Arc<Entry>The entry as it was.
score: f64The score it was evicted at.
bytes: usizeHow many bytes it was holding.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Evicted
impl RefUnwindSafe for Evicted
impl Send for Evicted
impl Sync for Evicted
impl Unpin for Evicted
impl UnsafeUnpin for Evicted
impl UnwindSafe for Evicted
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