Skip to main content

KVStore

Trait KVStore 

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

Key-Value Store trait combining read operations with transaction support

Required Methods§

Source

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

Begins a KV transaction

Implementors§