[][src]Enum nimiq_database::Transaction

pub enum Transaction<'env> {
    VolatileRead(VolatileReadTransaction<'env>),
    VolatileWrite(VolatileWriteTransaction<'env>),
    PersistentRead(LmdbReadTransaction<'env>),
    PersistentWrite(LmdbWriteTransaction<'env>),
}

Variants

VolatileRead(VolatileReadTransaction<'env>)
VolatileWrite(VolatileWriteTransaction<'env>)
PersistentRead(LmdbReadTransaction<'env>)
PersistentWrite(LmdbWriteTransaction<'env>)

Methods

impl<'env> Transaction<'env>[src]

pub fn get<K: ?Sized, V>(&self, db: &Database, key: &K) -> Option<V> where
    K: AsDatabaseBytes,
    V: FromDatabaseValue
[src]

pub fn cursor<'txn, 'db>(
    &'txn self,
    db: &'db Database<'env>
) -> Cursor<'txn, 'db>
[src]

Trait Implementations

impl<'env> Debug for Transaction<'env>[src]

Auto Trait Implementations

impl<'env> !Send for Transaction<'env>

impl<'env> !Sync for Transaction<'env>

impl<'env> Unpin for Transaction<'env>

impl<'env> !UnwindSafe for Transaction<'env>

impl<'env> !RefUnwindSafe for Transaction<'env>

Blanket Implementations

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> SafeBorrow<T> for T where
    T: ?Sized

impl<T> Erased for T