Trait sanakirja::Commit

source ·
pub trait Commit {
    // Required method
    fn commit(self) -> Result<(), Error>;
}
Expand description

Transactions that can be committed. This trait is an abstraction over mutable transactions and their subtransactions.

Required Methods§

source

fn commit(self) -> Result<(), Error>

Commit the transaction.

Implementors§

source§

impl<'a, E: Borrow<Env>, T> Commit for MutTxn<E, &'a mut MutTxn<E, T>>

The following is very easy, we’re just extending all values of the current transaction with values of the subtransaction.

source§

impl<E: Borrow<Env>> Commit for MutTxn<E, ()>