pub trait SingleVersionCommandTransaction: SingleVersionQueryTransaction + Send {
// Required methods
fn set(&mut self, key: &EncodedKey, row: EncodedValues) -> Result<()>;
fn remove<'life0, 'life1, 'async_trait>(
&'life0 mut self,
key: &'life1 EncodedKey,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait;
fn commit<'life0, 'async_trait>(
&'life0 mut self,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn rollback<'life0, 'async_trait>(
&'life0 mut self,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
}Expand description
Single-version command transaction trait. Uses tokio::sync locks which are Send-safe with owned guards.