pub trait CommandTransaction: MultiVersionCommandTransaction + QueryTransaction {
type SingleVersionCommand<'a>: SingleVersionCommandTransaction
where Self: 'a;
// Required methods
fn begin_single_command(&self) -> Result<Self::SingleVersionCommand<'_>>;
fn get_changes(&self) -> &TransactionalDefChanges;
// Provided method
fn with_single_command<F, R>(&self, f: F) -> Result<R>
where F: FnOnce(&mut Self::SingleVersionCommand<'_>) -> Result<R> { ... }
}Required Associated Types§
type SingleVersionCommand<'a>: SingleVersionCommandTransaction where Self: 'a
Required Methods§
fn begin_single_command(&self) -> Result<Self::SingleVersionCommand<'_>>
Sourcefn get_changes(&self) -> &TransactionalDefChanges
fn get_changes(&self) -> &TransactionalDefChanges
Get reference to catalog changes for this transaction
Provided Methods§
fn with_single_command<F, R>(&self, f: F) -> Result<R>
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.