pub trait Transaction {
type Error: Error + Send + Sync + 'static;
// Required methods
fn commit(self) -> impl Future<Output = Result<(), Self::Error>> + Send;
fn rollback(self) -> impl Future<Output = Result<(), Self::Error>> + Send;
}Required Associated Types§
Required Methods§
fn commit(self) -> impl Future<Output = Result<(), Self::Error>> + Send
fn rollback(self) -> impl Future<Output = Result<(), Self::Error>> + Send
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".