pub enum KeySequenceAction {
Emit(KeyEvent),
EmitSequence {
kind: KeySequenceKind,
keys: Vec<KeyEvent>,
},
Pending,
}Expand description
Action returned by the key sequence interpreter.
Variants§
Emit(KeyEvent)
Emit the key event immediately (no sequence detected).
EmitSequence
A complete key sequence was detected.
Fields
§
kind: KeySequenceKindThe kind of sequence that was detected.
Pending
Waiting for more keys to complete a potential sequence.
The caller should continue with other work; the interpreter will return the buffered keys if the timeout expires.
Implementations§
Source§impl KeySequenceAction
impl KeySequenceAction
Sourcepub const fn is_pending(&self) -> bool
pub const fn is_pending(&self) -> bool
Returns true if this action requires the caller to wait for more input.
Sourcepub const fn is_sequence(&self) -> bool
pub const fn is_sequence(&self) -> bool
Returns true if this action emits a sequence.
Trait Implementations§
Source§impl Clone for KeySequenceAction
impl Clone for KeySequenceAction
Source§fn clone(&self) -> KeySequenceAction
fn clone(&self) -> KeySequenceAction
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for KeySequenceAction
impl Debug for KeySequenceAction
Source§impl PartialEq for KeySequenceAction
impl PartialEq for KeySequenceAction
impl StructuralPartialEq for KeySequenceAction
Auto Trait Implementations§
impl Freeze for KeySequenceAction
impl RefUnwindSafe for KeySequenceAction
impl Send for KeySequenceAction
impl Sync for KeySequenceAction
impl Unpin for KeySequenceAction
impl UnwindSafe for KeySequenceAction
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