[−][src]Struct cargo::sources::directory::DirectorySource
Methods
impl<'cfg> DirectorySource<'cfg>
[src]
Trait Implementations
impl<'cfg> Source for DirectorySource<'cfg>
[src]
fn query(
&mut self,
dep: &Dependency,
f: &mut dyn FnMut(Summary)
) -> CargoResult<()>
[src]
&mut self,
dep: &Dependency,
f: &mut dyn FnMut(Summary)
) -> CargoResult<()>
fn fuzzy_query(
&mut self,
_dep: &Dependency,
f: &mut dyn FnMut(Summary)
) -> CargoResult<()>
[src]
&mut self,
_dep: &Dependency,
f: &mut dyn FnMut(Summary)
) -> CargoResult<()>
fn supports_checksums(&self) -> bool
[src]
fn requires_precise(&self) -> bool
[src]
fn source_id(&self) -> SourceId
[src]
fn update(&mut self) -> CargoResult<()>
[src]
fn download(&mut self, id: PackageId) -> CargoResult<MaybePackage>
[src]
fn finish_download(
&mut self,
_id: PackageId,
_data: Vec<u8>
) -> CargoResult<Package>
[src]
&mut self,
_id: PackageId,
_data: Vec<u8>
) -> CargoResult<Package>
fn fingerprint(&self, pkg: &Package) -> CargoResult<String>
[src]
fn verify(&self, id: PackageId) -> CargoResult<()>
[src]
fn describe(&self) -> String
[src]
fn add_to_yanked_whitelist(&mut self, _pkgs: &[PackageId])
[src]
fn replaced_source_id(&self) -> SourceId
[src]
Returns the replaced SourceId
corresponding to this source.
fn query_vec(&mut self, dep: &Dependency) -> CargoResult<Vec<Summary>>
[src]
fn download_now(
self: Box<Self>,
package: PackageId,
config: &Config
) -> CargoResult<Package> where
Self: Sized,
[src]
self: Box<Self>,
package: PackageId,
config: &Config
) -> CargoResult<Package> where
Self: Sized,
fn is_replaced(&self) -> bool
[src]
Returns whether a source is being replaced by another here.
impl<'cfg> Debug for DirectorySource<'cfg>
[src]
Auto Trait Implementations
impl<'cfg> !Send for DirectorySource<'cfg>
impl<'cfg> !Sync for DirectorySource<'cfg>
Blanket Implementations
impl<T> From for T
[src]
impl<T, U> Into for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T> Borrow for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> BorrowMut for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T, U> TryInto for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Same for T
type Output = T
Should always be Self