pub struct KeyboardEvent {
pub device_id: u64,
pub key: KeyboardKey,
pub action: KeyboardAction,
}
Expand description
An interaction that was created using a keyboard.
Fieldsยง
ยงdevice_id: u64
ยงkey: KeyboardKey
ยงaction: KeyboardAction
Trait Implementationsยง
Sourceยงimpl Clone for KeyboardEvent
impl Clone for KeyboardEvent
Sourceยงfn clone(&self) -> KeyboardEvent
fn clone(&self) -> KeyboardEvent
Returns a copy of the value. Read more
1.0.0 ยท Sourceยงfn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSourceยงimpl Debug for KeyboardEvent
impl Debug for KeyboardEvent
Sourceยงimpl PartialEq for KeyboardEvent
impl PartialEq for KeyboardEvent
impl Copy 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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Sourceยงimpl<T> Content for Twhere
T: Copy,
impl<T> Content for Twhere
T: Copy,
Sourceยงunsafe fn read<F, E>(size: usize, f: F) -> Result<T, E>
unsafe fn read<F, E>(size: usize, f: F) -> Result<T, E>
Prepares an output buffer, then turns this buffer into an
Owned
.
User-provided closure F
must only write to and not read from &mut Self
.Sourceยงfn get_elements_size() -> usize
fn get_elements_size() -> usize
Returns the size of each element.
Sourceยงfn to_void_ptr(&self) -> *const ()
fn to_void_ptr(&self) -> *const ()
Produces a pointer to the data.
Sourceยงfn ref_from_ptr<'a>(ptr: *mut (), size: usize) -> Option<*mut T>
fn ref_from_ptr<'a>(ptr: *mut (), size: usize) -> Option<*mut T>
Builds a pointer to this type from a raw pointer.
Sourceยงfn is_size_suitable(size: usize) -> bool
fn is_size_suitable(size: usize) -> bool
Returns true if the size is suitable to store a type like this.