pub struct KeyDispatcher<A> { /* private fields */ }Expand description
Implementations§
Source§impl<A: Clone> KeyDispatcher<A>
impl<A: Clone> KeyDispatcher<A>
Sourcepub fn set_active_contexts(&mut self, contexts: &[ContextId])
pub fn set_active_contexts(&mut self, contexts: &[ContextId])
Replace the set of active contexts (focused widget, mode, …).
Sourcepub fn active_contexts(&self) -> &[ContextId]
pub fn active_contexts(&self) -> &[ContextId]
Currently active contexts.
Sourcepub fn pending_prefix(&self) -> Option<Chord>
pub fn pending_prefix(&self) -> Option<Chord>
The chord prefix currently waiting for more keys.
Sourcepub fn stats(&self) -> DispatchStats
pub fn stats(&self) -> DispatchStats
Counters so far.
Trait Implementations§
Auto Trait Implementations§
impl<A> Freeze for KeyDispatcher<A>
impl<A> RefUnwindSafe for KeyDispatcher<A>where
KeyMap<A>: RefUnwindSafe,
impl<A> Send for KeyDispatcher<A>
impl<A> Sync for KeyDispatcher<A>
impl<A> Unpin for KeyDispatcher<A>
impl<A> UnsafeUnpin for KeyDispatcher<A>where
KeyMap<A>: UnsafeUnpin,
impl<A> UnwindSafe for KeyDispatcher<A>where
KeyMap<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