#[non_exhaustive]pub enum BreakReason {
DirectSteal,
LegacyCollapse,
}Expand description
Why a proposed rebind would break a reserved key.
This is #[non_exhaustive] because the empirical capability-aware layer
may add further break reasons (e.g. “would shadow on kitty protocol”) in a
future additive release.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
DirectSteal
proposed is identical to the reserved chord: placing it into target
would directly steal that chord from the app’s escape hatch.
LegacyCollapse
On a legacy 7-bit (C0) terminal proposed is indistinguishable from
the reserved chord (e.g. ctrl+i ≡ tab): binding proposed would
fire on the reserved key on any terminal that does not implement an
enhanced keyboard protocol.
Trait Implementations§
Source§impl Clone for BreakReason
impl Clone for BreakReason
Source§fn clone(&self) -> BreakReason
fn clone(&self) -> BreakReason
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 BreakReason
Source§impl Debug for BreakReason
impl Debug for BreakReason
impl Eq for BreakReason
Source§impl PartialEq for BreakReason
impl PartialEq for BreakReason
Source§fn eq(&self, other: &BreakReason) -> bool
fn eq(&self, other: &BreakReason) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for BreakReason
Auto Trait Implementations§
impl Freeze for BreakReason
impl RefUnwindSafe for BreakReason
impl Send for BreakReason
impl Sync for BreakReason
impl Unpin for BreakReason
impl UnsafeUnpin for BreakReason
impl UnwindSafe for BreakReason
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