[−][src]Trait sanakirja::Commit
Transactions that can be committed.
Required methods
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(mut self: 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.