Struct async_map::VersionedMap
source · pub struct VersionedMap<K: AsyncKey, V: AsyncStorable> { /* private fields */ }
Implementations§
source§impl<K: AsyncKey, V: AsyncStorable> VersionedMap<K, V>
impl<K: AsyncKey, V: AsyncStorable> VersionedMap<K, V>
Trait Implementations§
source§impl<K: AsyncKey, V: AsyncStorable> AsyncMap for VersionedMap<K, V>
impl<K: AsyncKey, V: AsyncStorable> AsyncMap for VersionedMap<K, V>
source§fn get_if_present(&self, key: &Self::Key) -> Option<Self::Value>
fn get_if_present(&self, key: &Self::Key) -> Option<Self::Value>
Synchronously returns the value associated with the provided key, if present; otherwise None
type Key = K
type Value = V
fn get<'a, 'b, B: FactoryBorrow<K, V>>( &'a self, key: &'a Self::Key, factory: B ) -> Pin<Box<dyn Future<Output = Self::Value> + Send + 'b>>
source§impl<K: AsyncKey, V: AsyncStorable> Clone for VersionedMap<K, V>
impl<K: AsyncKey, V: AsyncStorable> Clone for VersionedMap<K, V>
Auto Trait Implementations§
impl<K, V> !RefUnwindSafe for VersionedMap<K, V>
impl<K, V> Send for VersionedMap<K, V>
impl<K, V> !Sync for VersionedMap<K, V>
impl<K, V> Unpin for VersionedMap<K, V>
impl<K, V> !UnwindSafe for VersionedMap<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