WritableStore

Trait WritableStore 

Source
pub trait WritableStore {
    type Error;
    type Transaction<'c>: Transaction;

    // Required method
    fn begin<'c>(
        &mut self,
    ) -> impl Future<Output = Result<Self::Transaction<'c>, Self::Error>>;
}
Expand description

Store implementation returning an atomic transaction object for fail-safe writes.

Required Associated Types§

Source

type Error

Error type from store.

Source

type Transaction<'c>: Transaction

Store type for fail-safe transactions.

Required Methods§

Source

fn begin<'c>( &mut self, ) -> impl Future<Output = Result<Self::Transaction<'c>, Self::Error>>

Returns new transaction object to “begin” a single, atomic write transaction which is finally “committed” into the store.

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.

Implementors§