pub enum PendingCacheOp {
Store(PersistableEntry),
Remove,
Clear,
}Expand description
A pending operation for one cache key. Later writes supersede earlier
writes; a Remove supersedes a Store. Clear invalidates every older
op under the same generation.
Variants§
Store(PersistableEntry)
Remove
Clear
Clear the on-disk cache entirely. The worker only needs to know this
is a clear (the actual file deletion is performed by io.clear()).
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for PendingCacheOp
impl !Sync for PendingCacheOp
impl !UnwindSafe for PendingCacheOp
impl Freeze for PendingCacheOp
impl Send for PendingCacheOp
impl Unpin for PendingCacheOp
impl UnsafeUnpin for PendingCacheOp
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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more