pub trait PromptRequester: PromptResponder {
    fn is_interactive(&self) -> bool;
    fn request(
        &mut self,
        kind: RequestKind,
        prompt: &str,
        variants: &'static [&'static str]
    ) -> Result<String>; fn report(&mut self, kind: ReportKind, msg: &str) -> Result<()>; }
Expand description

Trait for prompts which can obtain input.

Required Methods

Returns true if the prompt is currently interactive.

Requests a response given a prompt message and optional variants.

Reports an informative or error message to the prompt.

Implementations on Foreign Types

Implementors