pub struct Eviction {
pub key: ResourceKey,
pub handle: Handle,
pub run: PageRun,
}Expand description
Pages freed by an eviction, reported by crate::Residency::step. Unlink
the resource (patch the parent, drop cached views) before using resident
data again; the handle is already stale.
Fields§
§key: ResourceKeyThe evicted resource.
handle: HandleIts former allocation (stale now).
run: PageRunThe pages it held.
Implementations§
Trait Implementations§
impl Copy for Eviction
impl Eq for Eviction
impl StructuralPartialEq for Eviction
Auto Trait Implementations§
impl Freeze for Eviction
impl RefUnwindSafe for Eviction
impl Send for Eviction
impl Sync for Eviction
impl Unpin for Eviction
impl UnsafeUnpin for Eviction
impl UnwindSafe for Eviction
Blanket Implementations§
§impl<T> Any for Twhere
T: 'static + ?Sized,
impl<T> Any for Twhere
T: 'static + ?Sized,
§impl<T> Borrow<T> for Twhere
T: ?Sized,
impl<T> Borrow<T> for Twhere
T: ?Sized,
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)