#[repr(C)]pub struct InputEvent {
pub time_sec: i64,
pub time_usec: i64,
pub id: u64,
pub value: i32,
pub ty: u16,
pub code: u16,
}
Fields§
§time_sec: i64
§time_usec: i64
§id: u64
§value: i32
§ty: u16
§code: u16
Implementations§
Source§impl InputEvent
impl InputEvent
pub fn new(id: u64, e: input_event) -> InputEvent
pub fn to_input_event(&self) -> input_event
Trait Implementations§
Auto Trait Implementations§
impl Freeze for InputEvent
impl RefUnwindSafe for InputEvent
impl Send for InputEvent
impl Sync for InputEvent
impl Unpin for InputEvent
impl UnwindSafe for InputEvent
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