Skip to main content

TransactionManager

Trait TransactionManager 

Source
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§

Source

fn begin(&self) -> TxId

Source

fn commit(&self, tx: TxId) -> Result<()>

Source

fn rollback(&self, tx: TxId) -> Result<()>

Source

fn snapshot(&self) -> SnapshotId

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§