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.
Required Associated Types§
Required Methods§
Provided Methods§
Object Safety§
This trait is not object safe.