Trait casper_execution_engine::storage::store::StoreExt[][src]

pub trait StoreExt<K, V>: Store<K, V> {
    fn get_many<'a, T>(
        &self,
        txn: &T,
        keys: impl Iterator<Item = &'a K>
    ) -> Result<Vec<Option<V>>, Self::Error>
    where
        T: Readable<Handle = Self::Handle>,
        K: ToBytes + 'a,
        V: FromBytes,
        Self::Error: From<T::Error>
, { ... }
fn put_many<'a, T>(
        &self,
        txn: &mut T,
        pairs: impl Iterator<Item = (&'a K, &'a V)>
    ) -> Result<(), Self::Error>
    where
        T: Writable<Handle = Self::Handle>,
        K: ToBytes + 'a,
        V: ToBytes + 'a,
        Self::Error: From<T::Error>
, { ... } }

Provided methods

fn get_many<'a, T>(
    &self,
    txn: &T,
    keys: impl Iterator<Item = &'a K>
) -> Result<Vec<Option<V>>, Self::Error> where
    T: Readable<Handle = Self::Handle>,
    K: ToBytes + 'a,
    V: FromBytes,
    Self::Error: From<T::Error>, 
[src]

fn put_many<'a, T>(
    &self,
    txn: &mut T,
    pairs: impl Iterator<Item = (&'a K, &'a V)>
) -> Result<(), Self::Error> where
    T: Writable<Handle = Self::Handle>,
    K: ToBytes + 'a,
    V: ToBytes + 'a,
    Self::Error: From<T::Error>, 
[src]

Loading content...

Implementors

impl<K, V, T: Store<K, V>> StoreExt<K, V> for T[src]

Loading content...