Struct service_install::install::RemoveSteps
source · 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, Box<dyn Error>>
pub fn remove(self) -> Result<String, Box<dyn Error>>
Perform all steps needed to remove an installation.
§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
§type Item = Box<dyn RemoveStep>
type Item = Box<dyn RemoveStep>
The type of the elements being iterated over.
§type IntoIter = IntoIter<<RemoveSteps as IntoIterator>::Item>
type IntoIter = IntoIter<<RemoveSteps as IntoIterator>::Item>
Which kind of iterator are we turning this into?
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
Mutably borrows from an owned value. Read more