pub struct TransactionManager<Manager: FileManager> { /* private fields */ }
Expand description

A shared TransactionLog manager. Allows multiple threads to interact with a single transaction log.

Implementations

Spawns a new transaction manager. The transaction manager runs its own thread that writes to the transaction log.

Creates a new transaction, exclusively locking trees. Will block the thread until the trees can be locked.

Scans the transaction log for entries with ids within range. Invokes callback for each entry found. The scan will always scan forwards starting with the lowest ID matching the range.

Returns true if the transaction id was recorded in the transaction log. This method caches

Returns the location on disk of the transaction, if found.

Returns the current state of the transaction log.

Methods from Deref<Target = State>

Returns the last successfully written transaction id, or None if no transactions have been recorded yet.

Returns the next transaction id that will be used.

Returns the path to the file.

Returns the current length of the log.

Returns if the log is empty.

Creates a new transaction, exclusively locking trees. Will block the thread until the trees can be locked.

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

The resulting type after dereferencing.

Dereferences the value.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more

Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more