pub trait KVStoreTransaction<'a, Error>: DbTransactionFinalizer<Err = Error> {
// Required methods
fn kv_read<'life0, 'life1, 'life2, 'life3, 'async_trait>(
&'life0 mut self,
primary_namespace: &'life1 str,
secondary_namespace: &'life2 str,
key: &'life3 str,
) -> Pin<Box<dyn Future<Output = Result<Option<Vec<u8>>, Error>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait;
fn kv_write<'life0, 'life1, 'life2, 'life3, 'life4, 'async_trait>(
&'life0 mut self,
primary_namespace: &'life1 str,
secondary_namespace: &'life2 str,
key: &'life3 str,
value: &'life4 [u8],
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait,
'life4: 'async_trait;
fn kv_remove<'life0, 'life1, 'life2, 'life3, 'async_trait>(
&'life0 mut self,
primary_namespace: &'life1 str,
secondary_namespace: &'life2 str,
key: &'life3 str,
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait;
fn kv_list<'life0, 'life1, 'life2, 'async_trait>(
&'life0 mut self,
primary_namespace: &'life1 str,
secondary_namespace: &'life2 str,
) -> Pin<Box<dyn Future<Output = Result<Vec<String>, Error>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait;
}
Expand description
Key-Value Store Transaction trait
Required Methods§
Sourcefn kv_read<'life0, 'life1, 'life2, 'life3, 'async_trait>(
&'life0 mut self,
primary_namespace: &'life1 str,
secondary_namespace: &'life2 str,
key: &'life3 str,
) -> Pin<Box<dyn Future<Output = Result<Option<Vec<u8>>, Error>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait,
fn kv_read<'life0, 'life1, 'life2, 'life3, 'async_trait>(
&'life0 mut self,
primary_namespace: &'life1 str,
secondary_namespace: &'life2 str,
key: &'life3 str,
) -> Pin<Box<dyn Future<Output = Result<Option<Vec<u8>>, Error>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait,
Read value from key-value store
Sourcefn kv_write<'life0, 'life1, 'life2, 'life3, 'life4, 'async_trait>(
&'life0 mut self,
primary_namespace: &'life1 str,
secondary_namespace: &'life2 str,
key: &'life3 str,
value: &'life4 [u8],
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait,
'life4: 'async_trait,
fn kv_write<'life0, 'life1, 'life2, 'life3, 'life4, 'async_trait>(
&'life0 mut self,
primary_namespace: &'life1 str,
secondary_namespace: &'life2 str,
key: &'life3 str,
value: &'life4 [u8],
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait,
'life4: 'async_trait,
Write value to key-value store
Sourcefn kv_remove<'life0, 'life1, 'life2, 'life3, 'async_trait>(
&'life0 mut self,
primary_namespace: &'life1 str,
secondary_namespace: &'life2 str,
key: &'life3 str,
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait,
fn kv_remove<'life0, 'life1, 'life2, 'life3, 'async_trait>(
&'life0 mut self,
primary_namespace: &'life1 str,
secondary_namespace: &'life2 str,
key: &'life3 str,
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait,
Remove value from key-value store
Sourcefn kv_list<'life0, 'life1, 'life2, 'async_trait>(
&'life0 mut self,
primary_namespace: &'life1 str,
secondary_namespace: &'life2 str,
) -> Pin<Box<dyn Future<Output = Result<Vec<String>, Error>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
fn kv_list<'life0, 'life1, 'life2, 'async_trait>(
&'life0 mut self,
primary_namespace: &'life1 str,
secondary_namespace: &'life2 str,
) -> Pin<Box<dyn Future<Output = Result<Vec<String>, Error>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
List keys in a namespace