pub enum PromptOutcome {
Continued,
Interrupted,
NotATty,
}Expand description
How wait_for_enter ended.
Variants§
Continued
Enter (or Return) was pressed.
Interrupted
Ctrl-C or Ctrl-D was pressed, or the input ended. The caller should carry on and exit normally, as if the remaining pages had been skipped.
NotATty
Nothing was asked because stdin or stdout is not a terminal.
Trait Implementations§
Source§impl Clone for PromptOutcome
impl Clone for PromptOutcome
Source§fn clone(&self) -> PromptOutcome
fn clone(&self) -> PromptOutcome
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for PromptOutcome
Source§impl Debug for PromptOutcome
impl Debug for PromptOutcome
impl Eq for PromptOutcome
Source§impl PartialEq for PromptOutcome
impl PartialEq for PromptOutcome
impl StructuralPartialEq for PromptOutcome
Auto Trait Implementations§
impl Freeze for PromptOutcome
impl RefUnwindSafe for PromptOutcome
impl Send for PromptOutcome
impl Sync for PromptOutcome
impl Unpin for PromptOutcome
impl UnsafeUnpin for PromptOutcome
impl UnwindSafe for PromptOutcome
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.