pub enum KeyAction {
Press,
Repeat,
Release,
}Expand description
Press / repeat / release. Legacy reports only presses; the kitty protocol’s “report event types” flag (bit 1) carries repeat and release too (#23).
Deliberately exhaustive (#843). Press / Repeat / Release is the kitty
keyboard protocol’s event space, closed. Left exhaustive on purpose, not by
omission.
Variants§
Trait Implementations§
impl Copy for KeyAction
impl Eq for KeyAction
impl StructuralPartialEq for KeyAction
Auto Trait Implementations§
impl Freeze for KeyAction
impl RefUnwindSafe for KeyAction
impl Send for KeyAction
impl Sync for KeyAction
impl Unpin for KeyAction
impl UnsafeUnpin for KeyAction
impl UnwindSafe for KeyAction
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