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
sourceimpl PartialEq<OnEsc> for OnEsc
impl PartialEq<OnEsc> for OnEsc
impl Copy for OnEsc
impl Eq for OnEsc
impl StructuralEq for OnEsc
impl StructuralPartialEq for OnEsc
Auto Trait Implementations
impl RefUnwindSafe for OnEsc
impl Send for OnEsc
impl Sync for OnEsc
impl Unpin for OnEsc
impl UnwindSafe for OnEsc
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more