Skip to main content

AsyncStoreWrite

Trait AsyncStoreWrite 

Source
pub trait AsyncStoreWrite<K, V> {
    // Required method
    fn insert(&self, key: K, value: V) -> impl Future<Output = ()>;
}

Required Methods§

Source

fn insert(&self, key: K, value: V) -> impl Future<Output = ()>

Insert a value into the store

§Arguments:
  • key: the key associated with the value
  • value: the value itself

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§

Source§

impl<K: Ord, V: Clone> AsyncStoreWrite<K, V> for MemoryStore<K, V>