pub enum Dispatch<A> {
Action {
action: A,
binding: BindingId,
chord: Chord,
},
Pending {
prefix: Chord,
},
Unbound(KeyEvent),
Expired {
prefix: Chord,
},
Esc(SequenceOutput),
}Expand description
What the dispatcher decided for one key event or tick.
Variants§
Action
A binding fired.
Pending
The key extended a chord prefix; waiting for more keys or the timeout.
Unbound(KeyEvent)
The key matched nothing (and could not extend a chord).
Expired
A pending prefix was abandoned (timeout or a non-extending key).
Esc(SequenceOutput)
Esc sequence detector output for an unbound Esc / Esc Esc.
Trait Implementations§
impl<A: Eq> Eq for Dispatch<A>
impl<A: PartialEq> StructuralPartialEq for Dispatch<A>
Auto Trait Implementations§
impl<A> Freeze for Dispatch<A>where
A: Freeze,
impl<A> RefUnwindSafe for Dispatch<A>where
A: RefUnwindSafe,
impl<A> Send for Dispatch<A>where
A: Send,
impl<A> Sync for Dispatch<A>where
A: Sync,
impl<A> Unpin for Dispatch<A>where
A: Unpin,
impl<A> UnsafeUnpin for Dispatch<A>where
A: UnsafeUnpin,
impl<A> UnwindSafe for Dispatch<A>where
A: UnwindSafe,
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