pub struct Transaction { /* private fields */ }
Trait Implementations§
Source§impl SimpleTransaction for Transaction
impl SimpleTransaction for Transaction
Source§fn get<'life0, 'async_trait, K>(
&'life0 self,
key: K,
tags: TagBucket,
) -> Pin<Box<dyn Future<Output = Result<Option<Val>, Error>> + 'async_trait>>
fn get<'life0, 'async_trait, K>( &'life0 self, key: K, tags: TagBucket, ) -> Pin<Box<dyn Future<Output = Result<Option<Val>, Error>> + 'async_trait>>
Fetch a key from the database
Source§fn set<'life0, 'async_trait, K, V>(
&'life0 mut self,
key: K,
val: V,
tags: TagBucket,
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + 'async_trait>>
fn set<'life0, 'async_trait, K, V>( &'life0 mut self, key: K, val: V, tags: TagBucket, ) -> Pin<Box<dyn Future<Output = Result<(), Error>> + 'async_trait>>
Insert or update a key in the database
Source§fn put<'life0, 'async_trait, K, V>(
&'life0 mut self,
key: K,
val: V,
tags: TagBucket,
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + 'async_trait>>
fn put<'life0, 'async_trait, K, V>( &'life0 mut self, key: K, val: V, tags: TagBucket, ) -> Pin<Box<dyn Future<Output = Result<(), Error>> + 'async_trait>>
Insert a key if it doesn’t exist in the database
Source§fn del<'life0, 'async_trait, K>(
&'life0 mut self,
key: K,
tags: TagBucket,
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + 'async_trait>>
fn del<'life0, 'async_trait, K>( &'life0 mut self, key: K, tags: TagBucket, ) -> Pin<Box<dyn Future<Output = Result<(), Error>> + 'async_trait>>
Delete a key
fn closed(&self) -> bool
fn cancel<'life0, 'async_trait>(
&'life0 mut self,
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn count<'life0, 'async_trait>(
&'life0 mut self,
tags: TagBucket,
) -> Pin<Box<dyn Future<Output = Result<usize, Error>> + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn commit<'life0, 'async_trait>(
&'life0 mut self,
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn exi<'life0, 'async_trait, K>( &'life0 self, key: K, tags: TagBucket, ) -> Pin<Box<dyn Future<Output = Result<bool, Error>> + 'async_trait>>
fn prefix_iterate<'life0, 'async_trait, P>( &'life0 self, prefix: P, tags: TagBucket, ) -> Pin<Box<dyn Future<Output = Result<Vec<Result<(Val, Val), Error>>, Error>> + 'async_trait>>
fn suffix_iterate<'life0, 'async_trait, S>( &'life0 self, suffix: S, tags: TagBucket, ) -> Pin<Box<dyn Future<Output = Result<Vec<Result<(Val, Val), Error>>, Error>> + 'async_trait>>
fn iterate<'life0, 'async_trait>(
&'life0 self,
tags: TagBucket,
) -> Pin<Box<dyn Future<Output = Result<Vec<Result<(Val, Val), Error>>, Error>> + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Auto Trait Implementations§
impl Freeze for Transaction
impl !RefUnwindSafe for Transaction
impl !Send for Transaction
impl !Sync for Transaction
impl Unpin for Transaction
impl !UnwindSafe for Transaction
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more