KVStore

Trait KVStore 

Source
pub trait KVStore: KVStoreDatabase {
    // Required method
    fn begin_transaction<'a, 'async_trait>(
        &'a self,
    ) -> Pin<Box<dyn Future<Output = Result<Box<dyn KVStoreTransaction<'a, Self::Err> + Send + Sync + 'a>, Error>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'a: 'async_trait;
}
Expand description

Key-Value Store Database trait

Required Methods§

Source

fn begin_transaction<'a, 'async_trait>( &'a self, ) -> Pin<Box<dyn Future<Output = Result<Box<dyn KVStoreTransaction<'a, Self::Err> + Send + Sync + 'a>, Error>> + Send + 'async_trait>>
where Self: 'async_trait, 'a: 'async_trait,

Beings a KV transaction

Implementors§