Struct elba::retrieve::cache::Cache[][src]

pub struct Cache {
    pub layout: Layout,
    pub logger: Logger,
    // some fields omitted
}

The Cache encapsulates all of the global state required for elba to function.

This global state includes stuff like temporary places to download and build packages, places to store indices of packages, etc.

Note that a Cache can be located anywhere, including in the current directory!

Fields

Methods

impl Cache
[src]

Retrieve the metadata of a package, loading it into the cache if necessary.

If the build directory exists, returns it. Otherwise, give up and return None

Returns a lock on a temporary build directory. Note that the format of this directory should be an OutputLayout.

Trait Implementations

impl Debug for Cache
[src]

Formats the value using the given formatter. Read more

impl Clone for Cache
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Auto Trait Implementations

impl Send for Cache

impl Sync for Cache