logo
pub trait Transaction: Sized {
    type Error;
    type Handle;

    fn commit(self) -> Result<(), Self::Error>;

    fn abort(self) { ... }
}
Expand description

A transaction which can be committed or aborted.

Required Associated Types

An error which can occur while reading or writing during a transaction, or committing the transaction.

An entity which is being read from or written to during a transaction.

Required Methods

Commits the transaction.

Provided Methods

Aborts the transaction.

Any pending operations will not be saved.

Implementations on Foreign Types

Implementors