pub struct RemoteRegistry<'cfg> {
    index_path: Filesystem,
    cache_path: Filesystem,
    source_id: SourceId,
    index_git_ref: GitReference,
    config: &'cfg Config,
    tree: RefCell<Option<Tree<'static>>>,
    repo: LazyCell<Repository>,
    head: Cell<Option<Oid>>,
    current_sha: Cell<Option<InternedString>>,
    needs_update: bool,
}
Expand description

A remote registry is a registry that lives at a remote URL (such as crates.io). The git index is cloned locally, and .crate files are downloaded as needed and cached locally.

Fields§

§index_path: Filesystem§cache_path: Filesystem

Path to the cache of .crate files ($CARGO_HOME/registry/path/$REG-HASH).

§source_id: SourceId§index_git_ref: GitReference§config: &'cfg Config§tree: RefCell<Option<Tree<'static>>>§repo: LazyCell<Repository>§head: Cell<Option<Oid>>§current_sha: Cell<Option<InternedString>>§needs_update: bool

Implementations§

Trait Implementations§

Executes the destructor for this type. Read more
Performs initialization for the registry. Read more
Returns the path to the index. Read more
Validates that the global package cache lock is held. Read more
Loads the JSON for a specific named package from the index. Read more
Loads the config.json file and returns it. Read more
Block until all outstanding Poll::Pending requests are Poll::Ready.
Invalidates locally cached data.
Is the local cached data up-to-date?
Prepare to start downloading a .crate file. Read more
Finish a download by saving a .crate file to disk. Read more
Returns whether or not the .crate file is already downloaded.

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.

Should always be Self
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.

Layout§

Note: Most layout information is completely unstable and may even differ between compilations. The only exception is types with certain repr(...) attributes. Please see the Rust Reference’s “Type Layout” chapter for details on type layout guarantees.

Size: 176 bytes