pub struct Update<T: Entry> {
pub to_evict: Vec<T>,
pub to_move_back: Vec<T>,
}Expand description
An Update<T> represents the maintenance operations to perform
on a set of Second Chance entries.
Fields§
§to_evict: Vec<T>List of entries to evict (remove from the cached set).
For files, this is a plain unlink / deletion.
to_move_back: Vec<T>List of entries to move back in the list of potential removal
victims, in order (i.e., the first entry in to_move_back
should be moved directly to the end of the current list, the
second entry right after, etc.).
For files, this corresponds to increasing the modification time to, e.g., “now.”
Implementations§
Auto Trait Implementations§
impl<T> Freeze for Update<T>
impl<T> RefUnwindSafe for Update<T>where
T: RefUnwindSafe,
impl<T> Send for Update<T>where
T: Send,
impl<T> Sync for Update<T>where
T: Sync,
impl<T> Unpin for Update<T>where
T: Unpin,
impl<T> UnwindSafe for Update<T>where
T: UnwindSafe,
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