Enum pc_keyboard::KeyState
source · pub enum KeyState {
Up,
Down,
SingleShot,
}
Expand description
The new state for a key, as part of a key event.
Variants§
Up
Key has just been released
Down
Key has just been pressed
SingleShot
Key was pressed and then released as an atomic action. Or it’s like a PowerOnSelfTest event which doesn’t have an ‘Up’ or a ‘Down’.
Trait Implementations§
impl Copy for KeyState
impl Eq for KeyState
impl StructuralPartialEq for KeyState
Auto Trait Implementations§
impl Freeze for KeyState
impl RefUnwindSafe for KeyState
impl Send for KeyState
impl Sync for KeyState
impl Unpin for KeyState
impl UnwindSafe for KeyState
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)