Struct kismet_cache::second_chance::Update[][src]

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

Determines how to update a second chance list of entries, so that at most capacity entries remain.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.