#[non_exhaustive]pub enum KeyboardEvent {
Key(KeyboardKeyEvent),
}
Expand description
A keyboard related 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.
Key(KeyboardKeyEvent)
An event related to pressing a key
Trait Implementations§
Source§impl AsRaw<libinput_event_keyboard> for KeyboardEvent
impl AsRaw<libinput_event_keyboard> for KeyboardEvent
Source§fn as_raw(&self) -> *const libinput_event_keyboard
fn as_raw(&self) -> *const libinput_event_keyboard
Receive a raw pointer representing this type.
Source§impl Context for KeyboardEvent
impl Context for KeyboardEvent
Source§impl Debug for KeyboardEvent
impl Debug for KeyboardEvent
Source§impl EventTrait for KeyboardEvent
impl EventTrait for KeyboardEvent
Source§impl Hash for KeyboardEvent
impl Hash for KeyboardEvent
Source§impl PartialEq for KeyboardEvent
impl PartialEq for KeyboardEvent
impl Eq for KeyboardEvent
impl StructuralPartialEq for KeyboardEvent
Auto Trait Implementations§
impl Freeze for KeyboardEvent
impl !RefUnwindSafe for KeyboardEvent
impl !Send for KeyboardEvent
impl !Sync for KeyboardEvent
impl Unpin for KeyboardEvent
impl !UnwindSafe for KeyboardEvent
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> KeyboardEventTrait for T
impl<T> KeyboardEventTrait for T
Source§fn into_keyboard_event(self) -> KeyboardEventwhere
Self: Sized,
fn into_keyboard_event(self) -> KeyboardEventwhere
Self: Sized,
Convert into a general
KeyboardEvent
again