Struct sanakirja::Txn[][src]

pub struct Txn<E: Borrow<Env>> { /* fields omitted */ }

An immutable transaction.

Trait Implementations

impl<E: Borrow<Env>> Drop for Txn<E>[src]

impl<E: Borrow<Env>> LoadPage for Txn<E>[src]

type Error = Error

fn load_page(&self, off: u64) -> Result<CowPage, Self::Error>[src]

Find the appropriate map segment

impl<E: Borrow<Env>> RootDb for Txn<E>[src]

fn root_db<K: Storable + ?Sized, V: Storable + ?Sized, P: BTreePage<K, V>>(
    &self,
    n: usize
) -> Option<Db_<K, V, P>>
[src]

This is a straightforward implementation of just accessing index n.

Auto Trait Implementations

impl<E> RefUnwindSafe for Txn<E> where
    E: RefUnwindSafe
[src]

impl<E> Send for Txn<E> where
    E: Send
[src]

impl<E> Sync for Txn<E> where
    E: Sync
[src]

impl<E> Unpin for Txn<E> where
    E: Unpin
[src]

impl<E> UnwindSafe for Txn<E> where
    E: UnwindSafe
[src]

Blanket Implementations

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

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

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

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.