Skip to main content

AsyncStoreWrite

Trait AsyncStoreWrite 

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

Required Methods§

Source

fn insert(&self, key: Self::Key, value: Self::Value) -> 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".

Implementors§