Struct cargo::sources::git::GitSource [] [src]

pub struct GitSource<'cfg> {
    // some fields omitted
}

Methods

impl<'cfg> GitSource<'cfg>
[src]

fn new(source_id: &SourceId, config: &'cfg Config) -> GitSource<'cfg>

fn url(&self) -> &Url

fn read_packages(&mut self) -> CargoResult<Vec<Package>>

Trait Implementations

impl<'cfg> Debug for GitSource<'cfg>
[src]

fn fmt(&self, f: &mut Formatter) -> Result

Formats the value using the given formatter.

impl<'cfg> Registry for GitSource<'cfg>
[src]

fn query(&mut self, dep: &Dependency) -> CargoResult<Vec<Summary>>

Attempt to find the packages that match a dependency request.

impl<'cfg> Source for GitSource<'cfg>
[src]

fn update(&mut self) -> CargoResult<()>

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>

The download method fetches the full package for each name and version specified. Read more

fn fingerprint(&self, _pkg: &Package) -> CargoResult<String>

Generates a unique string which represents the fingerprint of the current state of the source. Read more