pub struct WorkerSlot<K, V> { /* private fields */ }Implementations§
Source§impl<K, V> WorkerSlot<K, V>
impl<K, V> WorkerSlot<K, V>
pub fn new() -> Self
Sourcepub unsafe fn get_mut_unchecked(&self) -> &mut BatchBuf<K, V>
pub unsafe fn get_mut_unchecked(&self) -> &mut BatchBuf<K, V>
Provides exclusive access to the underlying buffer. Safety: The caller must ensure that only one thread accesses this slot at a time. In DualCache-FF, this is guaranteed by the WORKER_ID invariant.
Trait Implementations§
impl<K: Send, V: Send> Send for WorkerSlot<K, V>
impl<K: Send + Sync, V: Send + Sync> Sync for WorkerSlot<K, V>
Auto Trait Implementations§
impl<K, V> !Freeze for WorkerSlot<K, V>
impl<K, V> !RefUnwindSafe for WorkerSlot<K, V>
impl<K, V> Unpin for WorkerSlot<K, V>
impl<K, V> UnsafeUnpin for WorkerSlot<K, V>where
K: UnsafeUnpin,
V: UnsafeUnpin,
impl<K, V> UnwindSafe for WorkerSlot<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