pub struct DrainedOp {
pub key: u64,
pub op: PendingCacheOp,
pub key_generation: u64,
pub clear_generation: u64,
}Expand description
A queued op + the key/generation snapshot the worker must verify before publishing. The worker re-reads the queue’s per-key generation under the lock and rejects the op if it has been superseded.
Fields§
§key: u64§op: PendingCacheOp§key_generation: u64§clear_generation: u64Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for DrainedOp
impl !Sync for DrainedOp
impl !UnwindSafe for DrainedOp
impl Freeze for DrainedOp
impl Send for DrainedOp
impl Unpin for DrainedOp
impl UnsafeUnpin for DrainedOp
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