pub struct RemoveSteps(/* private fields */);Expand description
Changes to the system that need to be applied to remove the installation.
Returned by Spec::prepare_remove.Use
remove() to apply all changes at once. This
implements IntoIterator yielding RemoveSteps. These
steps can be described possibly in detail and/or performed one by one.
Implementations§
Source§impl RemoveSteps
impl RemoveSteps
Sourcepub fn remove(self) -> Result<String, RemoveError>
pub fn remove(self) -> Result<String, RemoveError>
Perform all steps needed to remove an installation. Report what was done at the end. Aborts on error.
§Errors
The system can change between preparing to remove and actually removing the install. For example a file could have been removed by the user of the system. Or the removal could run into an error that was not checked for while preparing. If you find this happens please make an issue.
Sourcepub fn best_effort_remove(self) -> Result<String, BestEffortRemoveError>
pub fn best_effort_remove(self) -> Result<String, BestEffortRemoveError>
Perform all steps needed to remove an installation. If any fail keep going. Collect all the errors and report them at the end.
§Errors
The system can change between preparing to remove and actually removing the install. For example a file could have been removed by the user of the system. Or the removal could run into an error that was not checked for while preparing. If you find this happens please make an issue.
Trait Implementations§
Source§impl Debug for RemoveSteps
impl Debug for RemoveSteps
Source§impl Display for RemoveSteps
impl Display for RemoveSteps
Source§impl IntoIterator for RemoveSteps
impl IntoIterator for RemoveSteps
Auto Trait Implementations§
impl Freeze for RemoveSteps
impl !RefUnwindSafe for RemoveSteps
impl !Send for RemoveSteps
impl !Sync for RemoveSteps
impl Unpin for RemoveSteps
impl !UnwindSafe for RemoveSteps
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
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>
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>
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