[][src]Trait sanakirja::Commit

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

Transactions that can be committed.

Required methods

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

Commit the transaction.

Loading content...

Implementors

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

impl<E: Borrow<Env<Exclusive>>> Commit for MutTxn<E, ()>[src]

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