Struct devlog::repository::LogRepository[][src]

pub struct LogRepository { /* fields omitted */ }
Expand description

Represents a devlog repository

Implementations

Creates a handle to the devlog repository at the specified path. The directory may or may not exist.

Checks if the repository has been initialized.

Initializes the repository. This creates the directory if it does not exist, as well as the first devlog entry file with sequence number one. Fails with an IOError if the first devlog entry already exists.

Returns the path to the repository directory, which may or may not exist.

Returns all paths to devlog entry files in the repository. The paths are not necessarily ordered.

Returns the most recent devlog entry file paths. limit is the maximum number of paths that may be returned.

Returns the most recent devlog entry file path, or None if the repository has not yet been initialized.

Returns the “nth” most recent devlog entry file path. For example, n=0 is the most recent entry, n=1 is the second most recent entry, and so on. Returns None if the repository has not yet been initialized.

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

Performs the conversion.

Performs the conversion.

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.