pub struct ParallelDependencyInstaller { /* private fields */ }Expand description
Parallel dependency installer
Implementations§
Source§impl ParallelDependencyInstaller
impl ParallelDependencyInstaller
Sourcepub fn new(
registry: Arc<dyn PackageRegistry>,
install_dir: PathBuf,
options: DownloadOptions,
) -> Self
pub fn new( registry: Arc<dyn PackageRegistry>, install_dir: PathBuf, options: DownloadOptions, ) -> Self
Create a new parallel installer
Sourcepub fn create_plan(
&self,
dependencies: &[ResolvedDependency],
) -> Result<InstallationPlan>
pub fn create_plan( &self, dependencies: &[ResolvedDependency], ) -> Result<InstallationPlan>
Create installation plan from resolved dependencies
Sourcepub fn create_plan_from_lockfile(
&self,
dependencies: &[LockedDependency],
) -> Result<InstallationPlan>
pub fn create_plan_from_lockfile( &self, dependencies: &[LockedDependency], ) -> Result<InstallationPlan>
Create installation plan from locked dependencies
Sourcepub fn install(
&mut self,
plan: &InstallationPlan,
) -> Result<InstallationStatistics>
pub fn install( &mut self, plan: &InstallationPlan, ) -> Result<InstallationStatistics>
Install dependencies according to plan
Sourcepub fn get_progress(&self) -> &InstallationProgress
pub fn get_progress(&self) -> &InstallationProgress
Get current progress
Auto Trait Implementations§
impl Freeze for ParallelDependencyInstaller
impl !RefUnwindSafe for ParallelDependencyInstaller
impl Send for ParallelDependencyInstaller
impl Sync for ParallelDependencyInstaller
impl Unpin for ParallelDependencyInstaller
impl UnsafeUnpin for ParallelDependencyInstaller
impl !UnwindSafe for ParallelDependencyInstaller
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more