pub enum InterruptResponse {
Ignore,
HoldOnKeyPress,
HoldOnKeyTap,
}
Expand description
How the tap hold key should respond to interruptions (input events from other keys).
Variants§
Ignore
The tap-hold key ignores other key presses/taps. (Only resolves to hold on timeout).
HoldOnKeyPress
The tap-hold key resolves as “hold” when interrupted by a key press.
HoldOnKeyTap
The tap-hold key resolves as “hold” when interrupted by a key tap. (Another key was pressed and released).
Trait Implementations§
Source§impl Clone for InterruptResponse
impl Clone for InterruptResponse
Source§fn clone(&self) -> InterruptResponse
fn clone(&self) -> InterruptResponse
Returns a copy of the value. Read more
1.0.0 · 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 InterruptResponse
impl Debug for InterruptResponse
Source§impl<'de> Deserialize<'de> for InterruptResponse
impl<'de> Deserialize<'de> for InterruptResponse
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
Source§impl PartialEq for InterruptResponse
impl PartialEq for InterruptResponse
impl Copy for InterruptResponse
impl StructuralPartialEq for InterruptResponse
Auto Trait Implementations§
impl Freeze for InterruptResponse
impl RefUnwindSafe for InterruptResponse
impl Send for InterruptResponse
impl Sync for InterruptResponse
impl Unpin for InterruptResponse
impl UnwindSafe for InterruptResponse
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