Struct cargo::core::package::PackageSet

source ·
pub struct PackageSet<'cfg> {
    packages: HashMap<PackageId, LazyCell<Package>>,
    sources: RefCell<SourceMap<'cfg>>,
    config: &'cfg Config,
    multi: Multi,
    downloading: Cell<bool>,
    multiplexing: bool,
}
Expand description

A set of packages, with the intent to download.

This is primarily used to convert a set of PackageIds to Packages. It will download as needed, or used the cached download if available.

Fields§

§packages: HashMap<PackageId, LazyCell<Package>>§sources: RefCell<SourceMap<'cfg>>§config: &'cfg Config§multi: Multi§downloading: Cell<bool>

Used to prevent reusing the PackageSet to download twice.

§multiplexing: bool

Whether or not to use curl HTTP/2 multiplexing.

Implementations§

Downloads any packages accessible from the give root ids.

Check if there are any dependency packages that violate artifact constraints to instantly abort, or that do not have any libs which results in warnings.

Merge the given set into self.

Auto Trait Implementations§

Blanket Implementations§

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Should always be Self
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.

Layout§

Note: Most layout information is completely unstable and may even differ between compilations. The only exception is types with certain repr(...) attributes. Please see the Rust Reference’s “Type Layout” chapter for details on type layout guarantees.

Size: 136 bytes