Enum promkit::PromptSignal
source · pub enum PromptSignal {
Continue,
Quit,
}Expand description
Represents the signal to control the flow of a prompt.
This enum is used to indicate whether a prompt should continue running or quit based on user input or other conditions.
Variants§
Continue
Indicates that the prompt should continue to run and handle further events.
Quit
Indicates that the prompt should quit and terminate its execution.
Trait Implementations§
source§impl PartialEq for PromptSignal
impl PartialEq for PromptSignal
source§fn eq(&self, other: &PromptSignal) -> bool
fn eq(&self, other: &PromptSignal) -> bool
This method tests for
self and other values to be equal, and is used
by ==.impl Eq for PromptSignal
impl StructuralPartialEq for PromptSignal
Auto Trait Implementations§
impl Freeze for PromptSignal
impl RefUnwindSafe for PromptSignal
impl Send for PromptSignal
impl Sync for PromptSignal
impl Unpin for PromptSignal
impl UnwindSafe for PromptSignal
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<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.