pub struct InstallOperation<'a> { /* private fields */ }Implementations§
Source§impl<'a> InstallOperation<'a>
impl<'a> InstallOperation<'a>
pub fn new( provider_manager: &'a ProviderManager, package_storage: &'a mut PackageStorage, paths: &'a UpstreamPaths, trusted_keys: TrustedSignatureKeys, ) -> Result<Self>
pub async fn install_bulk<F, G, H>( &mut self, packages: Vec<Package>, trust_mode: TrustMode, download_progress_callback: &mut Option<F>, overall_progress_callback: &mut Option<G>, message_callback: &mut Option<H>, ) -> Result<()>
pub async fn install_single<F, H>( &mut self, package: Package, version: &Option<String>, add_entry: &bool, trust_mode: TrustMode, download_progress_callback: &mut Option<F>, message_callback: &mut Option<H>, ) -> Result<()>
pub async fn install_single_with_context<F, H>( &mut self, package: Package, version: &Option<String>, add_entry: &bool, trust_mode: TrustMode, transaction_context: PackageTransactionContext, download_progress_callback: &mut Option<F>, message_callback: &mut Option<H>, ) -> Result<()>
pub async fn install_single_with_progress<F, H, P>( &mut self, package: Package, version: &Option<String>, add_entry: &bool, trust_mode: TrustMode, download_progress_callback: &mut Option<F>, message_callback: &mut Option<H>, progress_callback: &mut Option<P>, ) -> Result<()>
pub async fn install_local_artifact<H>( &mut self, package: Package, artifact_path: &Path, version: Version, add_entry: &bool, transaction_context: PackageTransactionContext, message_callback: &mut Option<H>, ) -> Result<Package>
pub async fn preview_single_install( &self, package: &Package, version: &Option<String>, ) -> Result<InstallPreview>
Auto Trait Implementations§
impl<'a> !RefUnwindSafe for InstallOperation<'a>
impl<'a> !UnwindSafe for InstallOperation<'a>
impl<'a> Freeze for InstallOperation<'a>
impl<'a> Send for InstallOperation<'a>
impl<'a> Sync for InstallOperation<'a>
impl<'a> Unpin for InstallOperation<'a>
impl<'a> UnsafeUnpin for InstallOperation<'a>
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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