Trait casper_execution_engine::storage::transaction_source::TransactionSource [−][src]
pub trait TransactionSource<'a> { type Error; type Handle; type ReadTransaction: Readable<Error = Self::Error, Handle = Self::Handle>; type ReadWriteTransaction: Readable<Error = Self::Error, Handle = Self::Handle> + Writable<Error = Self::Error, Handle = Self::Handle>; fn create_read_txn(&'a self) -> Result<Self::ReadTransaction, Self::Error>; fn create_read_write_txn(
&'a self
) -> Result<Self::ReadWriteTransaction, Self::Error>; }
Associated Types
Required methods
fn create_read_txn(&'a self) -> Result<Self::ReadTransaction, Self::Error>
[src]
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]
fn create_read_write_txn(
&'a self
) -> Result<Self::ReadWriteTransaction, Self::Error>
[src]Creates a read-write transaction.
Implementors
impl<'a> TransactionSource<'a> for InMemoryEnvironment
[src]
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>
impl<'a> TransactionSource<'a> for LmdbEnvironment
[src]
impl<'a> TransactionSource<'a> for LmdbEnvironment
[src]