pub struct Evicted {
pub page_id: PageId,
pub dirty: bool,
pub buffer: Page,
}Expand description
Outcome of Cache::insert.
Fields§
§page_id: PageIdPage-id that was evicted, if any.
dirty: booltrue if the evicted frame was dirty and must be flushed.
buffer: PageSnapshot of the evicted page’s bytes (the caller writes this
to disk when dirty is set).
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