pub trait TransactionManager: Send + Sync {
// Required methods
fn begin(&self) -> TxId;
fn commit(&self, tx: TxId) -> Result<()>;
fn rollback(&self, tx: TxId) -> Result<()>;
fn snapshot(&self) -> SnapshotId;
}Required Methods§
fn begin(&self) -> TxId
fn commit(&self, tx: TxId) -> Result<()>
fn rollback(&self, tx: TxId) -> Result<()>
fn snapshot(&self) -> SnapshotId
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".