Trait bee_storage::access::MultiFetch
source · [−]pub trait MultiFetch<'a, K, V>: StorageBackend {
type Iter: 'a + Iterator<Item = Result<Option<V>, Self::Error>>;
fn multi_fetch(&'a self, keys: &'a [K]) -> Result<Self::Iter, Self::Error>;
}
Expand description
MultiFetch<'a, K, V>
trait extends the StorageBackend
with multi_fetch
operation for the (key: K, value: V)
pair; therefore, it should be explicitly implemented for the corresponding StorageBackend
.