Struct cargo::sources::GitSource
[−]
[src]
pub struct GitSource<'cfg> { /* fields omitted */ }
Methods
impl<'cfg> GitSource<'cfg>
[src]
fn new(
source_id: &SourceId,
config: &'cfg Config
) -> CargoResult<GitSource<'cfg>>
[src]
source_id: &SourceId,
config: &'cfg Config
) -> CargoResult<GitSource<'cfg>>
fn url(&self) -> &Url
[src]
fn read_packages(&mut self) -> CargoResult<Vec<Package>>
[src]
Trait Implementations
impl<'cfg> Debug for GitSource<'cfg>
[src]
impl<'cfg> Registry for GitSource<'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 GitSource<'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, _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