Skip to main content

ProductionStore

Trait ProductionStore 

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

Source

type Transaction<'production>: ProductionStoreTransaction where Self: 'production

Backend-specific transaction implementation borrowing this store.

Required Methods§

Source

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".

Implementors§