[][src]Struct nimiq_database::ReadTransaction

pub struct ReadTransaction<'env>(_);

Methods

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

pub fn new(env: &'env Environment) -> Self[src]

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

pub fn close(self)[src]

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

Methods from Deref<Target = Transaction<'env>>

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 ReadTransaction<'env>[src]

impl<'env> Deref for ReadTransaction<'env>[src]

type Target = Transaction<'env>

The resulting type after dereferencing.

Auto Trait Implementations

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

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

Blanket Implementations

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

impl<T, U> Into<U> for T where
    U: From<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