pub trait AnyTreeRoot<File: ManagedFile> {
    fn name(&self) -> &str;
fn default_state(&self) -> Box<dyn AnyTreeState>;
fn begin_transaction(
        &self,
        transaction_id: TransactionId,
        file_path: &Path,
        state: &dyn AnyTreeState,
        context: &Context<File::Manager>,
        transactions: Option<&TransactionManager<File::Manager>>
    ) -> Result<Box<dyn AnyTransactionTree<File>>, Error>; }
Expand description

A named tree that can be used in a transaction.

Required methods

The name of the tree.

The default state for the underlying root type.

Begins a transaction on this tree.

Implementors