Struct cargo::core::package::Downloads [−][src]
pub struct Downloads<'a, 'cfg> { /* fields omitted */ }
Expand description
Helper for downloading crates.
Implementations
Starts to download the package for the id
specified.
Returns None
if the package is queued up for download and will
eventually be returned from wait_for_download
. Returns Some(pkg)
if
the package is ready and doesn’t need to be downloaded.
Blocks the current thread waiting for a package to finish downloading.
This method will wait for a previously enqueued package to finish downloading and return a reference to it after it’s done downloading.
Panics
This function will panic if there are no remaining downloads.
Trait Implementations
Auto Trait Implementations
impl<'a, 'cfg> !RefUnwindSafe for Downloads<'a, 'cfg>
impl<'a, 'cfg> !UnwindSafe for Downloads<'a, 'cfg>