Trait async_map::AsyncMap [−][src]
pub trait AsyncMap: Clone + Send { type Key: KeyTrait; type Value: ValueTrait; fn get_if_present(&self, key: &Self::Key) -> Option<Self::Value>; fn get<'a, 'b, B: FactoryBorrow<Self::Key, Self::Value>>(
&'a self,
key: &'a Self::Key,
factory: B
) -> Pin<Box<dyn Future<Output = Self::Value> + Send + 'b>>; }
Associated Types
Required methods
Implementors
impl<K: KeyTrait + Sync, V: ValueTrait + Sync> AsyncMap for LockingMap<K, V>
[src]
impl<K: KeyTrait + Sync, V: ValueTrait + Sync> AsyncMap for LockingMap<K, V>
[src]impl<K: KeyTrait, V: ValueTrait> AsyncMap for NonLockingMap<K, V>
[src]
impl<K: KeyTrait, V: ValueTrait> AsyncMap for NonLockingMap<K, V>
[src]impl<K: KeyTrait, V: ValueTrait> AsyncMap for VersionedMap<K, V>
[src]
impl<K: KeyTrait, V: ValueTrait> AsyncMap for VersionedMap<K, V>
[src]fn get_if_present(&self, key: &Self::Key) -> Option<Self::Value>
[src]
fn get_if_present(&self, key: &Self::Key) -> Option<Self::Value>
[src]Synchronously returns the value associated with the provided key, if present; otherwise None