[][src]Struct sanakirja::Txn

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

An immutable transaction.

Implementations

impl<L, E: Borrow<Env<L>>> Txn<L, E>[src]

pub fn statistics(&self) -> Statistics[src]

Compute statistics about pages. This is a potentially costlty operation, as we need to go through all bookkeeping pages.

pub fn references<K: Representable, V: Representable>(
    &self,
    h: &mut HashMap<u64, usize>,
    root: Db<K, V>
)
[src]

Fills the h argument with the set of all pages referenced at least once in the tree whose root is root.

pub fn check_references(&self, refs: &mut HashMap<u64, usize>)[src]

Checks that the references match the RC table.

Trait Implementations

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

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

pub fn load_page(&self, off: u64) -> Result<Page, CRCError>[src]

Find the appropriate map segment

impl<L, E: Borrow<Env<L>>> Transaction for Txn<L, E>[src]

Auto Trait Implementations

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

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

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

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

impl<L, E> UnwindSafe for Txn<L, E> where
    E: UnwindSafe,
    L: 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.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,