Struct cargo::sources::directory::DirectorySource
[−]
[src]
pub struct DirectorySource<'cfg> { /* fields omitted */ }
Methods
impl<'cfg> DirectorySource<'cfg>
[src]
fn new(
path: &Path,
id: &SourceId,
config: &'cfg Config
) -> DirectorySource<'cfg>
path: &Path,
id: &SourceId,
config: &'cfg Config
) -> DirectorySource<'cfg>
Trait Implementations
impl<'cfg> Debug for DirectorySource<'cfg>
[src]
impl<'cfg> Registry for DirectorySource<'cfg>
[src]
fn query(&mut self, dep: &Dependency) -> CargoResult<Vec<Summary>>
Attempt to find the packages that match a dependency request.
fn supports_checksums(&self) -> bool
Returns whether or not this registry will return summaries with checksums listed. Read more
impl<'cfg> Source for DirectorySource<'cfg>
[src]
fn source_id(&self) -> &SourceId
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
fn verify(&self, id: &PackageId) -> CargoResult<()>
If this source supports it, verifies the source of the package specified. Read more