pub trait TransactionBegin: Sized {
    type WriteOptions: Default;
    type TransactionOptions: Default;

    // Required method
    fn transaction(
        &self,
        write_options: &<Self as TransactionBegin>::WriteOptions,
        tx_options: &<Self as TransactionBegin>::TransactionOptions
    ) -> Transaction<'_, Self>;

    // Provided method
    fn transaction_default(&self) -> Transaction<'_, Self> { ... }
}

Required Associated Types§

Required Methods§

source

fn transaction( &self, write_options: &<Self as TransactionBegin>::WriteOptions, tx_options: &<Self as TransactionBegin>::TransactionOptions ) -> Transaction<'_, Self>

Provided Methods§

source

fn transaction_default(&self) -> Transaction<'_, Self>

Begins a new optimistic transaction with default options.

Object Safety§

This trait is not object safe.

Implementors§