#[repr(u8)]pub enum MorseMode {
PermissiveHold = 0,
HoldOnOtherPress = 1,
Normal = 2,
}Expand description
Mode for morse key behavior
Variants§
PermissiveHold = 0
Same as QMK’s permissive hold: https://docs.qmk.fm/tap_hold#tap-or-hold-decision-modes When another key is pressed and released during the current morse key is held, the hold action of current morse key will be triggered
HoldOnOtherPress = 1
Trigger hold immediately if any other non-morse key is pressed when the current morse key is held
Normal = 2
Normal mode, the decision is made when timeout
Trait Implementations§
impl Copy for MorseMode
Source§impl<'de> Deserialize<'de> for MorseMode
impl<'de> Deserialize<'de> for MorseMode
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
impl Eq for MorseMode
Source§impl MaxSize for MorseMode
impl MaxSize for MorseMode
Source§const POSTCARD_MAX_SIZE: usize
const POSTCARD_MAX_SIZE: usize
The maximum possible size that the serialization of this
type can have, in bytes.
impl StructuralPartialEq for MorseMode
Auto Trait Implementations§
impl Freeze for MorseMode
impl RefUnwindSafe for MorseMode
impl Send for MorseMode
impl Sync for MorseMode
impl Unpin for MorseMode
impl UnsafeUnpin for MorseMode
impl UnwindSafe for MorseMode
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