pub trait ProductionStore: ProductionRead {
type Transaction<'production>: ProductionStoreTransaction
where Self: 'production;
// Required method
fn begin_transaction(&mut self) -> Result<Self::Transaction<'_>>;
}Expand description
A production persistence backend with explicit domain transactions.
Required Associated Types§
Sourcetype Transaction<'production>: ProductionStoreTransaction
where
Self: 'production
type Transaction<'production>: ProductionStoreTransaction where Self: 'production
Backend-specific transaction implementation borrowing this store.
Required Methods§
Sourcefn begin_transaction(&mut self) -> Result<Self::Transaction<'_>>
fn begin_transaction(&mut self) -> Result<Self::Transaction<'_>>
Begins a transaction for domain mutations.
§Errors
Returns a storage-domain error when a transaction cannot be started.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".