pub trait Transaction: Sized {
type Error;
type Handle;
// Required method
fn commit(self) -> Result<(), Self::Error>;
// Provided method
fn abort(self) { ... }
}
Expand description
A transaction which can be committed or aborted.