Struct cargo::sources::registry::RegistrySource
[−]
[src]
pub struct RegistrySource<'cfg> { /* fields omitted */ }
Methods
impl<'cfg> RegistrySource<'cfg>
[src]
fn remote(source_id: &SourceId, config: &'cfg Config) -> RegistrySource<'cfg>
[src]
fn local(
source_id: &SourceId,
path: &Path,
config: &'cfg Config
) -> RegistrySource<'cfg>
[src]
source_id: &SourceId,
path: &Path,
config: &'cfg Config
) -> RegistrySource<'cfg>
fn config(&mut self) -> CargoResult<Option<RegistryConfig>>
[src]
Decode the configuration stored within the registry.
This requires that the index has been at least checked out.
Trait Implementations
impl<'cfg> Registry for RegistrySource<'cfg>
[src]
fn query(&mut self, dep: &Dependency, f: &mut FnMut(Summary)) -> CargoResult<()>
[src]
Attempt to find the packages that match a dependency request.
fn supports_checksums(&self) -> bool
[src]
Returns whether or not this registry will return summaries with checksums listed. Read more
fn query_vec(&mut self, dep: &Dependency) -> CargoResult<Vec<Summary>>
[src]
impl<'cfg> Source for RegistrySource<'cfg>
[src]
fn source_id(&self) -> &SourceId
[src]
fn update(&mut self) -> CargoResult<()>
[src]
The update method performs any network operations required to get the entire list of all names, versions and dependencies of packages managed by the Source. Read more
fn download(&mut self, package: &PackageId) -> CargoResult<Package>
[src]
The download method fetches the full package for each name and version specified. Read more
fn fingerprint(&self, pkg: &Package) -> CargoResult<String>
[src]
Generates a unique string which represents the fingerprint of the current state of the source. Read more
fn verify(&self, _pkg: &PackageId) -> CargoResult<()>
[src]
If this source supports it, verifies the source of the package specified. Read more