Struct cargo::sources::replaced::ReplacedSource
[−]
[src]
pub struct ReplacedSource<'cfg> { /* fields omitted */ }
Methods
impl<'cfg> ReplacedSource<'cfg>
[src]
fn new(
to_replace: &SourceId,
replace_with: &SourceId,
src: Box<Source + 'cfg>
) -> ReplacedSource<'cfg>
[src]
to_replace: &SourceId,
replace_with: &SourceId,
src: Box<Source + 'cfg>
) -> ReplacedSource<'cfg>
Trait Implementations
impl<'cfg> Registry for ReplacedSource<'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 query_vec(&mut self, dep: &Dependency) -> CargoResult<Vec<Summary>>
[src]
fn supports_checksums(&self) -> bool
[src]
Returns whether or not this registry will return summaries with checksums listed. Read more
impl<'cfg> Source for ReplacedSource<'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, id: &PackageId) -> CargoResult<Package>
[src]
The download method fetches the full package for each name and version specified. Read more
fn fingerprint(&self, id: &Package) -> CargoResult<String>
[src]
Generates a unique string which represents the fingerprint of the current state of the source. Read more
fn verify(&self, id: &PackageId) -> CargoResult<()>
[src]
If this source supports it, verifies the source of the package specified. Read more