pub struct input_event {
pub tv_sec: i64,
pub tv_usec: i64,
pub type_: u16,
pub code: u16,
pub value: i32,
}Expand description
An input event as the kernel writes it, with the time as two 64-bit numbers on every architecture: the value the input thread hands to the UI thread.
Fields§
§tv_sec: i64§tv_usec: i64§type_: u16§code: u16§value: i32Implementations§
Trait Implementations§
Source§impl Clone for input_event
impl Clone for input_event
impl Copy for input_event
Source§impl Debug for input_event
impl Debug for input_event
Source§impl Default for input_event
impl Default for input_event
impl Eq for input_event
Source§impl PartialEq for input_event
impl PartialEq for input_event
impl StructuralPartialEq for input_event
Auto Trait Implementations§
impl Freeze for input_event
impl RefUnwindSafe for input_event
impl Send for input_event
impl Sync for input_event
impl Unpin for input_event
impl UnsafeUnpin for input_event
impl UnwindSafe for input_event
Blanket Implementations§
Source§impl<T> AnyValue for Twhere
T: PartialEq + 'static,
impl<T> AnyValue for Twhere
T: PartialEq + 'static,
fn any_value_as_any(&self) -> &(dyn Any + 'static)
fn any_value_eq(&self, other: &(dyn AnyValue + 'static)) -> bool
fn any_value_type_name(&self) -> &'static str
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> ClassDefaults for Twhere
T: ?Sized,
impl<T> ClassDefaults for Twhere
T: ?Sized,
Source§fn static_constructor()
fn static_constructor()
The static constructor of a type: work done once per thread, after
the properties of the type are registered and before its first
instance exists (class handlers,
affects_render, metadata
overrides). Read more