Trait casper_execution_engine::storage::transaction_source::TransactionSource [−][src]
Associated Types
type Error
[src]
An error which can occur while creating a read or read-write transaction.
type Handle
[src]
An entity which is being read from or written to during a transaction.
type ReadTransaction: Readable<Error = Self::Error, Handle = Self::Handle>
[src]
Represents the type of read transactions.
type ReadWriteTransaction: Readable<Error = Self::Error, Handle = Self::Handle> + Writable<Error = Self::Error, Handle = Self::Handle>
[src]
Represents the type of read-write transactions.
Required methods
fn create_read_txn(&'a self) -> Result<Self::ReadTransaction, Self::Error>
[src]
Creates a read transaction.
fn create_read_write_txn(
&'a self
) -> Result<Self::ReadWriteTransaction, Self::Error>
[src]
&'a self
) -> Result<Self::ReadWriteTransaction, Self::Error>
Creates a read-write transaction.
Implementors
impl<'a> TransactionSource<'a> for InMemoryEnvironment
[src]
type Error = Error
type Handle = Option<String>
type ReadTransaction = InMemoryReadTransaction
type ReadWriteTransaction = InMemoryReadWriteTransaction<'a>
fn create_read_txn(&'a self) -> Result<InMemoryReadTransaction, Self::Error>
[src]
fn create_read_write_txn(
&'a self
) -> Result<InMemoryReadWriteTransaction<'a>, Self::Error>
[src]
&'a self
) -> Result<InMemoryReadWriteTransaction<'a>, Self::Error>