[][src]Trait bee_storage::access::Insert

pub trait Insert<K, V>: StorageBackend {
#[must_use]    pub fn insert<'life0, 'life1, 'life2, 'async_trait>(
        &'life0 self,
        key: &'life1 K,
        value: &'life2 V
    ) -> Pin<Box<dyn Future<Output = Result<(), Self::Error>> + Send + 'async_trait>>
    where
        'life0: 'async_trait,
        'life1: 'async_trait,
        'life2: 'async_trait,
        Self: 'async_trait
; }

Insert<K, V> trait extends the StorageBackend with insert operation for the (key: K, value: V) pair; therefore, it should be explicitly implemented for the corresponding StorageBackend.

Required methods

#[must_use]pub fn insert<'life0, 'life1, 'life2, 'async_trait>(
    &'life0 self,
    key: &'life1 K,
    value: &'life2 V
) -> Pin<Box<dyn Future<Output = Result<(), Self::Error>> + Send + 'async_trait>> where
    'life0: 'async_trait,
    'life1: 'async_trait,
    'life2: 'async_trait,
    Self: 'async_trait, 
[src]

Inserts the (K, V) pair in the storage.

Loading content...

Implementors

Loading content...