pub struct KeyMapConfig {
pub chord_timeout: Duration,
pub esc: SequenceConfig,
}Expand description
Timing configuration of a KeyMap.
Fields§
§chord_timeout: DurationHow long a pending chord prefix waits for its next key.
esc: SequenceConfigEsc / Esc Esc detection settings for the dispatcher’s detector.
Implementations§
Source§impl KeyMapConfig
impl KeyMapConfig
Sourcepub fn with_chord_timeout(self, timeout: Duration) -> Self
pub fn with_chord_timeout(self, timeout: Duration) -> Self
Set the chord timeout, clamped to 200..=5000 ms.
Sourcepub fn with_esc(self, esc: SequenceConfig) -> Self
pub fn with_esc(self, esc: SequenceConfig) -> Self
Set the Esc sequence configuration.
Trait Implementations§
Source§impl Clone for KeyMapConfig
impl Clone for KeyMapConfig
Source§fn clone(&self) -> KeyMapConfig
fn clone(&self) -> KeyMapConfig
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 moreSource§impl Debug for KeyMapConfig
impl Debug for KeyMapConfig
Auto Trait Implementations§
impl Freeze for KeyMapConfig
impl RefUnwindSafe for KeyMapConfig
impl Send for KeyMapConfig
impl Sync for KeyMapConfig
impl Unpin for KeyMapConfig
impl UnsafeUnpin for KeyMapConfig
impl UnwindSafe for KeyMapConfig
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