[−][src]Trait sled::transaction::Transactional
A type that may be transacted on in sled transactions.
Associated Types
type View
An internal reference to an internal proxy type that mediates transactional reads and writes.
Required methods
fn make_overlay(&self) -> Result<TransactionalTrees>
An internal function for creating a top-level transactional structure.
fn view_overlay(overlay: &TransactionalTrees) -> Self::View
An internal function for viewing the transactional subcomponents based on the top-level transactional structure.
Provided methods
fn transaction<F, A>(&self, f: F) -> TransactionResult<A, E> where
F: Fn(&Self::View) -> ConflictableTransactionResult<A, E>,
F: Fn(&Self::View) -> ConflictableTransactionResult<A, E>,
Runs a transaction, possibly retrying the passed-in closure if a concurrent conflict is detected that would cause a violation of serializability. This is the only trait method that you're most likely to use directly.