pub trait Commit { fn commit(self) -> Result<(), Error>; }
Transactions that can be committed. This trait is an abstraction over mutable transactions and their subtransactions.
Commit the transaction.
The following is very easy, we’re just extending all values of the current transaction with values of the subtransaction.