Enum kismet_cache::CacheHitAction[][src]

pub enum CacheHitAction {
    Accept,
    Promote,
    Replace,
}
Expand description

What to do with a cache hit in a Cache::get_or_update call?

Variants

Accept

Return the cache hit as is.

Promote

Return the cache hit after promoting it to the current write cache directory, if necessary.

Replace

Replace with and return a new file.

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.