Trait casper_execution_engine::storage::transaction_source::Transaction[][src]

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.

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