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§
impl Freeze for CacheHitAction
impl RefUnwindSafe for CacheHitAction
impl Send for CacheHitAction
impl Sync for CacheHitAction
impl Unpin for CacheHitAction
impl UnwindSafe for CacheHitAction
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