pub trait Update<K, V>: StorageBackend {
    fn update(&self, key: &K, f: impl FnMut(&mut V)) -> Result<(), Self::Error>;
}
Expand description

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

Required Methods

Fetches the value for the key K and updates it using f.

Implementors