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§
impl Copy for OnEsc
impl Eq for OnEsc
impl StructuralPartialEq for OnEsc
Auto Trait Implementations§
impl Freeze for OnEsc
impl RefUnwindSafe for OnEsc
impl Send for OnEsc
impl Sync for OnEsc
impl Unpin for OnEsc
impl UnwindSafe for OnEsc
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