pub trait CommandUnitOfWork {
// Required methods
fn begin_transaction(&mut self) -> Result<()>;
fn commit(&mut self) -> Result<()>;
fn rollback(&mut self) -> Result<()>;
fn create_savepoint(&self) -> Result<Savepoint>;
fn restore_to_savepoint(&mut self, savepoint: Savepoint) -> Result<()>;
fn store(&self) -> Arc<Store> ⓘ;
}Required Methods§
fn begin_transaction(&mut self) -> Result<()>
fn commit(&mut self) -> Result<()>
fn rollback(&mut self) -> Result<()>
fn create_savepoint(&self) -> Result<Savepoint>
fn restore_to_savepoint(&mut self, savepoint: Savepoint) -> Result<()>
fn store(&self) -> Arc<Store> ⓘ
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".