Struct bufkit_data::Archive

source ·
pub struct Archive { /* private fields */ }
Expand description

The archive.

Implementations

Initialize a new archive.

Open an existing archive.

Retrieve a path to the root. Allows caller to store files in the database.

Retrieve a list of sites in the archive.

Retrieve the information about a single site.

Modify a sites values.

Add a site to the list of sites.

Check if a site already exists

Get a list of models in the database for this site.

Add a bufkit file to the archive.

Retrieve a file from the archive.

Retrieve the model initialization time of the most recent model in the archive.

Retrieve the most recent file

Get the file name this would have if uncompressed.

Check to see if a file is present in the archive and it is retrieveable.

Get a list of all the available model initialization times for a given site and model.

Get an inventory of soundings for a site & model.

Remove a file from the archive.

Validate files listed in the index are in the archive too, if not remove them from the index.

Returns a Vec of messages about missing files.

Search for appropriately named files in the data directory and make sure they are in the index. If a file is not appropriately name or if it is a directory, it is deleted.

Returns a Vec of messages about added files.

Compress the index file. This cleans up and reorganizes the index file.

Trait Implementations

Formats the value using the given formatter. Read more

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.