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) { ... }
}

A transaction which can be committed or aborted.

Associated Types

type Error[src]

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

type Handle[src]

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

Loading content...

Required methods

fn commit(self) -> Result<(), Self::Error>[src]

Commits the transaction.

Loading content...

Provided methods

fn abort(self)[src]

Aborts the transaction.

Any pending operations will not be saved.

Loading content...

Implementations on Foreign Types

impl<'a> Transaction for RoTransaction<'a>[src]

type Error = Error

type Handle = Database

impl<'a> Transaction for RwTransaction<'a>[src]

type Error = Error

type Handle = Database

Loading content...

Implementors

Loading content...