Struct libpijul_compat::Repository [] [src]

pub struct Repository { /* fields omitted */ }

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

Methods

impl Repository
[src]

[src]

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

[src]

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

[src]

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

[src]

Start an immutable transaction. Immutable transactions can run concurrently.

[src]

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.