Struct arc_map::ArcMap[][src]

pub struct ArcMap<K: MKey, V: MVal> { /* fields omitted */ }

Methods

impl<K: MKey, V: MVal> ArcMap<K, V>
[src]

Create a new ArcMap This will spawn a guard process That process will die when the last Clone of this map is dropped

Add a new item to the map.

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

This function only removes the object from the list. If you have an Arc Copy that will still be valid

Run f on the item at the index "on", Returns the result of f wrapped in a Result Allows for reading data out of the object Errors if index not found, or channel/locking errors

Trait Implementations

impl<K: Clone + MKey, V: Clone + MVal> Clone for ArcMap<K, V>
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Auto Trait Implementations

impl<K, V> Send for ArcMap<K, V>

impl<K, V> Sync for ArcMap<K, V>