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.
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.
Auto Trait Implementations§
impl<'a> Freeze for CacheHit<'a>
impl<'a> RefUnwindSafe for CacheHit<'a>
impl<'a> Send for CacheHit<'a>
impl<'a> Sync for CacheHit<'a>
impl<'a> Unpin for CacheHit<'a>
impl<'a> !UnwindSafe for CacheHit<'a>
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