pub trait StoreTransaction {
type TransactionErr: Error;
// Required methods
fn begin_transaction(&mut self) -> Result<(), Self::TransactionErr>;
fn commit_transaction(&mut self) -> Result<(), Self::TransactionErr>;
fn rollback_transaction(&mut self);
}Required Associated Types§
type TransactionErr: Error
Required Methods§
fn begin_transaction(&mut self) -> Result<(), Self::TransactionErr>
fn commit_transaction(&mut self) -> Result<(), Self::TransactionErr>
fn rollback_transaction(&mut self)
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".