pub trait Fetch<K, V>: StorageBackend {
    fn fetch(&self, key: &K) -> Result<Option<V>, Self::Error>;
}
Expand description

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

Required Methods

Fetches the value associated with the key from the storage.

Implementors