pub struct RemoveOperation<'a> { /* private fields */ }Implementations§
Source§impl<'a> RemoveOperation<'a>
impl<'a> RemoveOperation<'a>
pub fn new( package_storage: &'a mut PackageStorage, metadata_storage: &'a mut MetadataStorage, paths: &'a UpstreamPaths, ) -> Self
pub fn remove_bulk<H, G>( &mut self, package_names: &Vec<String>, purge_option: &bool, force_option: &bool, message_callback: &mut Option<H>, overall_progress_callback: &mut Option<G>, ) -> Result<(u32, u32)>
pub fn remove_bulk_with_progress<H, G, P>( &mut self, package_names: &Vec<String>, purge_option: &bool, force_option: &bool, message_callback: &mut Option<H>, overall_progress_callback: &mut Option<G>, progress_callback: &mut Option<P>, ) -> Result<(u32, u32)>
pub fn preview_bulk<H>( &mut self, package_names: &Vec<String>, purge_option: &bool, message_callback: &mut Option<H>, ) -> Result<(u32, u32)>
pub fn estimate_bulk_impact( &self, package_names: &[String], purge_option: bool, ) -> (DiskImpact, u32, u32)
pub fn transaction_impact_rows( &self, package_names: &[String], purge_option: bool, ) -> Result<Vec<(String, String, DiskImpact)>>
pub fn estimate_rollback_impact( &self, package_names: &[String], purge_option: bool, ) -> SignedByteEstimate
pub fn preview_single<H>( &mut self, package_name: &str, purge_option: &bool, message_callback: &mut Option<H>, ) -> Result<()>
pub fn remove_single<H>( &mut self, package_name: &str, purge_option: &bool, force_option: &bool, message_callback: &mut Option<H>, ) -> Result<()>
pub fn remove_single_with_progress<H, P>( &mut self, package_name: &str, purge_option: &bool, force_option: &bool, message_callback: &mut Option<H>, progress_callback: &mut Option<P>, ) -> Result<()>
pub fn remove_single_with_source<H, P>( &mut self, package_name: &str, purge_option: &bool, force_option: &bool, rollback_source: RollbackSource, message_callback: &mut Option<H>, progress_callback: &mut Option<P>, ) -> Result<()>
Auto Trait Implementations§
impl<'a> !UnwindSafe for RemoveOperation<'a>
impl<'a> Freeze for RemoveOperation<'a>
impl<'a> RefUnwindSafe for RemoveOperation<'a>
impl<'a> Send for RemoveOperation<'a>
impl<'a> Sync for RemoveOperation<'a>
impl<'a> Unpin for RemoveOperation<'a>
impl<'a> UnsafeUnpin for RemoveOperation<'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