pub struct MorsesConfig {
pub enable_flow_tap: Option<bool>,
pub prior_idle_time: Option<DurationMillis>,
pub unilateral_tap: Option<bool>,
pub permissive_hold: Option<bool>,
pub hold_on_other_press: Option<bool>,
pub normal_mode: Option<bool>,
pub hold_timeout: Option<DurationMillis>,
pub gap_timeout: Option<DurationMillis>,
pub profiles: Option<HashMap<String, MorseProfile>>,
pub morses: Option<Vec<MorseConfig>>,
}Expand description
Configurations for morse keys
Fields§
§enable_flow_tap: Option<bool>§prior_idle_time: Option<DurationMillis>used in permissive_hold mode
unilateral_tap: Option<bool>if true, tap-hold key will always send tap action when tapped with the same hand only
permissive_hold: Option<bool>The decision mode of the morse/tap-hold key (only one of permissive_hold, hold_on_other_press and normal_mode can be true) if none of them is given, normal mode will be the default
hold_on_other_press: Option<bool>§normal_mode: Option<bool>§hold_timeout: Option<DurationMillis>If the key is pressed longer than this, it is accepted as hold (in milliseconds)
gap_timeout: Option<DurationMillis>The time elapsed from the last release of a key is longer than this, it will break the morse pattern (in milliseconds)
profiles: Option<HashMap<String, MorseProfile>>these can be used to overrides the defaults given above
morses: Option<Vec<MorseConfig>>the definition of morse / tap dance keys
Trait Implementations§
Source§impl Clone for MorsesConfig
impl Clone for MorsesConfig
Source§fn clone(&self) -> MorsesConfig
fn clone(&self) -> MorsesConfig
Returns a duplicate of the value. Read more
1.0.0§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for MorsesConfig
impl Debug for MorsesConfig
Source§impl<'de> Deserialize<'de> for MorsesConfig
impl<'de> Deserialize<'de> for MorsesConfig
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for MorsesConfig
impl RefUnwindSafe for MorsesConfig
impl Send for MorsesConfig
impl Sync for MorsesConfig
impl Unpin for MorsesConfig
impl UnwindSafe for MorsesConfig
Blanket Implementations§
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)