pub struct WorkerCache<K, V>{ /* private fields */ }Expand description
A simple per-worker cache to avoid repeated allocations.
Each worker maintains its own cache, eliminating contention.
Implementations§
Trait Implementations§
Source§impl<K, V: Debug> Debug for WorkerCache<K, V>
impl<K, V: Debug> Debug for WorkerCache<K, V>
Auto Trait Implementations§
impl<K, V> Freeze for WorkerCache<K, V>
impl<K, V> RefUnwindSafe for WorkerCache<K, V>where
K: RefUnwindSafe,
V: RefUnwindSafe,
impl<K, V> Send for WorkerCache<K, V>
impl<K, V> Sync for WorkerCache<K, V>
impl<K, V> Unpin for WorkerCache<K, V>
impl<K, V> UnwindSafe for WorkerCache<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
Source§impl<T> Injectable for T
impl<T> Injectable for T
Source§fn type_id_of() -> TypeIdwhere
Self: Sized,
fn type_id_of() -> TypeIdwhere
Self: Sized,
Returns the TypeId of this type (for internal use)
Source§fn type_name_of() -> &'static strwhere
Self: Sized,
fn type_name_of() -> &'static strwhere
Self: Sized,
Returns the type name for debugging