[][src]Trait sanakirja::Commit

pub trait Commit {
    fn commit(self) -> Result<(), Error>;
}

Transactions that can be committed.

Required methods

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

Commit the transaction.

Loading content...

Implementors

impl<'a, 'env, T> Commit for MutTxn<'env, &'a mut MutTxn<'env, T>>[src]

impl<'env> Commit for MutTxn<'env, ()>[src]

fn commit(self) -> Result<(), Error>[src]

Commit a transaction. This is guaranteed to be atomic: either the commit succeeds, and all the changes made during the transaction are written to disk. Or the commit doesn't succeed, and we're back to the state just before starting the transaction.

Loading content...