Trait ckb_rocksdb::ops::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§
type WriteOptions: Default
type TransactionOptions: Default
Required Methods§
fn transaction( &self, write_options: &<Self as TransactionBegin>::WriteOptions, tx_options: &<Self as TransactionBegin>::TransactionOptions ) -> Transaction<'_, Self>
Provided Methods§
sourcefn transaction_default(&self) -> Transaction<'_, Self>
fn transaction_default(&self) -> Transaction<'_, Self>
Begins a new optimistic transaction with default options.
Object Safety§
This trait is not object safe.