RollbackStep

Trait RollbackStep 

Source
pub trait RollbackStep {
    // Required methods
    fn perform(&mut self) -> Result<(), RollbackError>;
    fn describe(&self, tense: Tense) -> String;
}
Expand description

Undoes a InstallStep. Can be executed or described.

Required Methods§

Source

fn perform(&mut self) -> Result<(), RollbackError>

Executes this rollback step. This can be used when building an install wizard. You can describe() and then ask the end user if the want to perform it.

§Errors

The system could have changed between the install and the rollback. Leading to various errors, mostly IO.

Source

fn describe(&self, tense: Tense) -> String

Trait Implementations§

Source§

impl Debug for &dyn RollbackStep

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Display for &dyn RollbackStep

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more

Implementors§