Struct mpmc_map::MpmcMap[][src]

pub struct MpmcMap<K: Send + Sync + Hash + Clone + Eq + 'static, V: Send + Clone + Sync + 'static> { /* fields omitted */ }

Implementations

impl<K: Send + Sync + Hash + Clone + Eq + 'static, V: Send + Clone + Sync + 'static> MpmcMap<K, V>[src]

pub fn new() -> Self[src]

pub async fn insert(&self, key: K, value: V) -> Option<V>[src]

pub async fn remove(&self, key: K) -> Option<V>[src]

pub fn get<BK: ?Sized>(&self, key: &BK) -> Option<V> where
    BK: Hash + Eq,
    K: Borrow<BK>, 
[src]

pub fn contains_key<BK: ?Sized>(&self, key: &BK) -> bool where
    BK: Hash + Eq,
    K: Borrow<BK>, 
[src]

pub fn inner_full(&self) -> Arc<HashMap<K, V>>[src]

pub fn inner(&self) -> Guard<Arc<HashMap<K, V>>>[src]

pub async fn reset(&self, value: Arc<HashMap<K, V>>)[src]

pub async fn atomic(&self, op: AtomicOp<K, V>) -> bool[src]

pub fn len(&self) -> usize[src]

pub fn is_empty(&self) -> bool[src]

Trait Implementations

impl<K: Send + Sync + Hash + Clone + Eq + 'static, V: Send + Clone + Sync + 'static> Clone for MpmcMap<K, V>[src]

impl<K: Debug + Send + Sync + Hash + Clone + Eq + 'static, V: Debug + Send + Clone + Sync + 'static> Debug for MpmcMap<K, V>[src]

impl<K: Send + Sync + Hash + Clone + Eq + 'static, V: Send + Clone + Sync + 'static> Default for MpmcMap<K, V>[src]

Auto Trait Implementations

impl<K, V> !RefUnwindSafe for MpmcMap<K, V>

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

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

impl<K, V> Unpin for MpmcMap<K, V>

impl<K, V> !UnwindSafe for MpmcMap<K, V>

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.