pub struct CacheSlot<K, V> { /* private fields */ }Expand description
A single cache slot in the direct-mapped StaticDualCache. Utilizes a lightweight spinlock and an UnsafeCell to manage exclusive mutable access to the underlying optional key-value pair.
Implementations§
Trait Implementations§
impl<K: Send, V: Send> Send for CacheSlot<K, V>
impl<K: Sync, V: Sync> Sync for CacheSlot<K, V>
Auto Trait Implementations§
impl<K, V> !Freeze for CacheSlot<K, V>
impl<K, V> !RefUnwindSafe for CacheSlot<K, V>
impl<K, V> Unpin for CacheSlot<K, V>
impl<K, V> UnsafeUnpin for CacheSlot<K, V>where
K: UnsafeUnpin,
V: UnsafeUnpin,
impl<K, V> UnwindSafe for CacheSlot<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