pub enum EscapePolicy {
CancelOnEscape,
SubmitOnEscape,
IgnoreEscape,
}Expand description
Defers and configures the core submit/cancel control flow behavior for prompt inputs.
This policy decouples individual components from the global key mapper. Instead of hardcoding specific component behaviors (e.g., checking if an action belongs to a multi-select prompt), components advertise their structural key handling strategy via this enum.
Variants§
Trait Implementations§
Source§impl Clone for EscapePolicy
impl Clone for EscapePolicy
Source§fn clone(&self) -> EscapePolicy
fn clone(&self) -> EscapePolicy
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 EscapePolicy
Source§impl Debug for EscapePolicy
impl Debug for EscapePolicy
impl Eq for EscapePolicy
Source§impl PartialEq for EscapePolicy
impl PartialEq for EscapePolicy
impl StructuralPartialEq for EscapePolicy
Auto Trait Implementations§
impl Freeze for EscapePolicy
impl RefUnwindSafe for EscapePolicy
impl Send for EscapePolicy
impl Sync for EscapePolicy
impl Unpin for EscapePolicy
impl UnsafeUnpin for EscapePolicy
impl UnwindSafe for EscapePolicy
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