pub enum KeyResolve<A> {
Pending,
Match(Binding<A>),
Ambiguous,
Unbound(Vec<KeyEvent>),
}Expand description
Result of feeding a key event into the keymap.
Variants§
Pending
The key extends an incomplete chord — wait for more keys.
Match(Binding<A>)
A terminal chord was matched.
Ambiguous
An exact terminal match exists and longer chords also start with this prefix. Caller waits for timeout to disambiguate.
Unbound(Vec<KeyEvent>)
No chord matches the buffered sequence. Vec contains the buffered
keys (including the last one) that should be replayed to the engine.
Trait Implementations§
Auto Trait Implementations§
impl<A> !RefUnwindSafe for KeyResolve<A>
impl<A> !UnwindSafe for KeyResolve<A>
impl<A> Freeze for KeyResolve<A>where
A: Freeze,
impl<A> Send for KeyResolve<A>where
A: Send,
impl<A> Sync for KeyResolve<A>where
A: Sync,
impl<A> Unpin for KeyResolve<A>where
A: Unpin,
impl<A> UnsafeUnpin for KeyResolve<A>where
A: UnsafeUnpin,
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