ckb_rocksdb::ops

Trait TransactionBegin

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

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§