Enum smithay_client_toolkit::seat::keyboard::KeyState [−][src]
#[repr(u32)]
#[non_exhaustive]
pub enum KeyState {
Released,
Pressed,
}
Expand description
physical key state
Describes the physical state of a key that produced the key event.
Variants (Non-exhaustive)
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Released
key is not pressed
Pressed
key is pressed
Implementations
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for KeyState
impl UnwindSafe for KeyState
Blanket Implementations
Mutably borrows from an owned value. Read more