Skip to main content

Prompter

Trait Prompter 

Source
pub trait Prompter {
    // Required method
    fn ask_continue(
        &mut self,
        step_description: &str,
        error: &str,
    ) -> Result<bool, Error>;
}
Expand description

Abstraction over interactive prompting, allowing test mocks.

Required Methods§

Source

fn ask_continue( &mut self, step_description: &str, error: &str, ) -> Result<bool, Error>

Ask the user whether to continue after a step fails with on_fail = "prompt". Returns true to continue, false to abort.

Implementors§