Enum requestty_ui::OnEsc
source · [−]pub enum OnEsc {
Terminate,
SkipQuestion,
Ignore,
}Expand description
What to do after receiving Esc
Variants
Terminate
Stop asking the PromptModule. Similar effect to Ctrl+C except it can be distinguished in
case different behaviour is needed
SkipQuestion
Skip the current question and move on to the next question. The question will not be asked again.
Ignore
Pressing Esc will not do anything, and will be ignored. This is the default behaviour.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for OnEsc
impl UnwindSafe for OnEsc
Blanket Implementations
Mutably borrows from an owned value. Read more