[][src]Trait sled::Transactional

pub trait Transactional {
    type View;
    fn make_overlay(&self) -> TransactionalTrees;
fn view_overlay(overlay: &TransactionalTrees) -> Self::View; fn transaction<F, R>(&self, f: F) -> TransactionResult<R>
    where
        F: Fn(Self::View) -> TransactionResult<R>
, { ... } }

Associated Types

type View

Loading content...

Required methods

fn make_overlay(&self) -> TransactionalTrees

fn view_overlay(overlay: &TransactionalTrees) -> Self::View

Loading content...

Provided methods

fn transaction<F, R>(&self, f: F) -> TransactionResult<R> where
    F: Fn(Self::View) -> TransactionResult<R>, 

Loading content...

Implementations on Foreign Types

impl<A, B> Transactional for (A, B) where
    A: AsRef<Tree>,
    B: AsRef<Tree>, 
[src]

type View = (&'static TransactionalTree<'static>, &'static TransactionalTree<'static>)

Loading content...

Implementors

impl<'a> Transactional for &'a Tree[src]

type View = &'static TransactionalTree<'static>

Loading content...