[][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<'_, '_> Transactional for (&'_ Tree, &'_ Tree)[src]

type View = (TransactionalTree, TransactionalTree)

Loading content...

Implementors

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

type View = TransactionalTree

Loading content...