pub trait TransactionOps: Sized + Send {
type Error: Error + Send + Sync;
// Required methods
async fn commit(self) -> Result<(), Self::Error>;
async fn rollback(self) -> Result<(), Self::Error>;
}Expand description
Trait for transaction types that can be committed or rolled back.
Required Associated Types§
Required Methods§
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.