pub trait SqlTransaction:
SqlWriter
+ Send
+ 'static {
// Required methods
fn commit<'async_trait>(
self: Box<Self>,
) -> Pin<Box<dyn Future<Output = StorageResult<()>> + Send + 'async_trait>>
where Self: 'async_trait;
fn rollback<'async_trait>(
self: Box<Self>,
) -> Pin<Box<dyn Future<Output = StorageResult<()>> + Send + 'async_trait>>
where Self: 'async_trait;
}Expand description
A SQL transaction (extends SqlWriter).
Required Methods§
fn commit<'async_trait>(
self: Box<Self>,
) -> Pin<Box<dyn Future<Output = StorageResult<()>> + Send + 'async_trait>>where
Self: 'async_trait,
fn rollback<'async_trait>(
self: Box<Self>,
) -> Pin<Box<dyn Future<Output = StorageResult<()>> + Send + 'async_trait>>where
Self: 'async_trait,
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".