pub struct ShadowDemandSplit {
pub agreed: usize,
pub agreed_demanded: usize,
pub shadow_kept: usize,
pub shadow_kept_demanded: usize,
}Expand description
Post-eviction demand, split by whether the shadow policy agreed with the live one about each evicted entry (kunobi-ninja/kache#594).
Fields§
§agreed: usizeEvicted entries the shadow policy would also have evicted.
agreed_demanded: usize…of which were later asked for again.
shadow_kept: usizeEvicted entries the shadow policy would have KEPT.
shadow_kept_demanded: usize…of which were later asked for again — the shadow’s saves, had it been live.
Trait Implementations§
Source§impl Clone for ShadowDemandSplit
impl Clone for ShadowDemandSplit
impl Copy for ShadowDemandSplit
Source§impl Debug for ShadowDemandSplit
impl Debug for ShadowDemandSplit
Source§impl Default for ShadowDemandSplit
impl Default for ShadowDemandSplit
impl Eq for ShadowDemandSplit
Source§impl PartialEq for ShadowDemandSplit
impl PartialEq for ShadowDemandSplit
impl StructuralPartialEq for ShadowDemandSplit
Auto Trait Implementations§
impl Freeze for ShadowDemandSplit
impl RefUnwindSafe for ShadowDemandSplit
impl Send for ShadowDemandSplit
impl Sync for ShadowDemandSplit
impl Unpin for ShadowDemandSplit
impl UnsafeUnpin for ShadowDemandSplit
impl UnwindSafe for ShadowDemandSplit
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