pub struct TransactionLog<File: ManagedFile> { /* private fields */ }
Expand description

A transaction log that records changes for one or more trees.

Implementations

Opens a transaction log for reading.

Opens a transaction log for writing.

Returns the total size of the transaction log file.

Initializes state to contain the information about the transaction log located at log_path.

Logs one or more transactions. After this call returns, the transaction log is guaranteed to be fully written to disk.

Errors

Returns ErrorKind::TransactionPushedOutOfOrder if handles is out of order, or if any handle contains an id older than one already written to the log.

Returns the executed transaction with the id provided. Returns None if not found.

Logs one or more transactions. After this call returns, the transaction log is guaranteed to be fully written to disk.

Closes the transaction log.

Begins a new transaction, exclusively locking trees.

Returns the current state of the log.

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 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