pub struct Repository { /* private fields */ }
Expand description

A repository. All operations on repositories must be done via transactions.

Implementations§

Open a repository, possibly increasing the size of the underlying file if size_increase is Some(…).

Open a repository, possibly increasing the size of the underlying file if size_increase is Some(…).

Close a repository. It is undefined behaviour to use it afterwards.

Start an immutable transaction. Immutable transactions can run concurrently.

Start a mutable transaction. Mutable transactions exclude each other, but can in principle be run concurrently with immutable transactions. In that case, the immutable transaction only have access to the state of the repository immediately before the mutable transaction started.

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.

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.