pub struct ArcMap<K: MKey, V: MVal> { /* private fields */ }
Implementations§
Source§impl<K: MKey, V: MVal> ArcMap<K, V>
impl<K: MKey, V: MVal> ArcMap<K, V>
Sourcepub fn new() -> ArcMap<K, V>
pub fn new() -> ArcMap<K, V>
Create a new ArcMap This will spawn a guard process That process will die when the last Clone of this map is dropped
pub fn new_sized(bsize: usize) -> ArcMap<K, V>
Sourcepub fn get(&self, k: K) -> Result<Arc<Mutex<V>>, AMapErr>
pub fn get(&self, k: K) -> Result<Arc<Mutex<V>>, AMapErr>
The basic way of getting an item out of the list for editing returns type of (wrapped) Arc means you can keep this after closing and still be safe In general prefer on_do
Trait Implementations§
Auto Trait Implementations§
impl<K, V> Freeze for ArcMap<K, V>
impl<K, V> RefUnwindSafe for ArcMap<K, V>
impl<K, V> Send for ArcMap<K, V>
impl<K, V> Sync for ArcMap<K, V>
impl<K, V> Unpin for ArcMap<K, V>
impl<K, V> UnwindSafe for ArcMap<K, V>
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