pub enum Command<K, V> {
Insert(K, V, u64),
BatchInsert(Vec<(K, V, u64)>),
Remove(K, u64),
Clear(Sender<()>),
Sync(Sender<()>),
}Variants§
Insert(K, V, u64)
Insert request from Worker. Daemon applies global Probation gate before Cache write.
BatchInsert(Vec<(K, V, u64)>)
Batch of (K,V) pairs from sharded buffer. Each item goes through probation.
Remove(K, u64)
Clear(Sender<()>)
Sync(Sender<()>)
Auto Trait Implementations§
impl<K, V> Freeze for Command<K, V>
impl<K, V> RefUnwindSafe for Command<K, V>where
K: RefUnwindSafe,
V: RefUnwindSafe,
impl<K, V> Send for Command<K, V>
impl<K, V> Sync for Command<K, V>
impl<K, V> Unpin for Command<K, V>
impl<K, V> UnsafeUnpin for Command<K, V>where
K: UnsafeUnpin,
V: UnsafeUnpin,
impl<K, V> UnwindSafe for Command<K, V>where
K: UnwindSafe,
V: UnwindSafe,
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