Enum kismet_cache::CacheHit[][src]

pub enum CacheHit<'a> {
    Primary(&'a mut File),
    Secondary(&'a mut File),
}
Expand description

Where does a cache hit come from: the primary read-write cache, or one of the secondary read-only caches?

Variants

Primary(&'a mut File)

The file was found in the primary read-write cache; promoting it is a no-op.

Tuple Fields of Primary

0: &'a mut File
Secondary(&'a mut File)

The file was found in one of the secondary read-only caches. Promoting it to the primary cache will require a full copy.

Tuple Fields of Secondary

0: &'a mut 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.