Struct light_cache::map::LightMap
source · pub struct LightMap<K, V, S = DefaultHashBuilder> { /* private fields */ }Expand description
A concurrent hashmap implementation thats always non-blocking.
Calls to get and insert are not async and since values are clone, they will never block another thread.
Implementations§
source§impl<K, V> LightMap<K, V>
impl<K, V> LightMap<K, V>
pub fn new() -> Self
pub fn with_capacity(capacity: usize) -> Self
source§impl<K, V, S: BuildHasher> LightMap<K, V, S>
impl<K, V, S: BuildHasher> LightMap<K, V, S>
pub fn with_hasher(build_hasher: S) -> Self
pub fn with_capacity_and_hasher(capacity: usize, build_hasher: S) -> Self
Auto Trait Implementations§
impl<K, V, S> Freeze for LightMap<K, V, S>where
S: Freeze,
impl<K, V, S> RefUnwindSafe for LightMap<K, V, S>where
S: RefUnwindSafe,
impl<K, V, S> Send for LightMap<K, V, S>
impl<K, V, S> Sync for LightMap<K, V, S>
impl<K, V, S> Unpin for LightMap<K, V, S>where
S: Unpin,
impl<K, V, S> UnwindSafe for LightMap<K, V, S>where
S: 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