pub struct Event {
pub phase: Phase,
pub code_point: Option<u32>,
pub hid_usage: u32,
pub modifiers: Modifiers,
}
Expand description
A keyboard event.
Fields§
§phase: Phase
Event phase.
code_point: Option<u32>
Unicode code point of the key causing the event, if any.
hid_usage: u32
USB HID usage of the key causing the event.
modifiers: Modifiers
Modifier keys being pressed or held in addition to the key causing the event.
Trait Implementations§
impl StructuralPartialEq for Event
Auto Trait Implementations§
impl Freeze for Event
impl RefUnwindSafe for Event
impl Send for Event
impl Sync for Event
impl Unpin for Event
impl UnwindSafe for Event
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
)