Struct input_event
#[repr(C)]
pub struct input_event { pub time: timeval, pub type_: __u16, pub code: __u16, pub value: __s32 }
Fields
time: timevaltype_: __u16code: __u16value: __s32
Trait Implementations
impl Clone for input_event
fn clone(&self) -> input_event
impl Copy for input_event
impl Debug for input_event
fn fmt(&self, f: &mut Formatter<'_>) -> Result
impl Eq for input_event
impl Hash for input_event
fn hash<__H: Hasher>(&self, state: &mut __H)
impl PartialEq for input_event
fn eq(&self, other: &input_event) -> bool
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
impl<T> Any for input_event
where
T: 'static + ?Sized,
fn type_id(&self) -> TypeId
impl<T> Borrow<T> for input_event
where
T: ?Sized,
fn borrow(&self) -> &T
impl<T> BorrowMut<T> for input_event
where
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
impl<T> CloneToUninit for input_event
where
T: Clone,
unsafe fn clone_to_uninit(&self, dest: *mut u8)
impl<T> From<T> for input_event
fn from(t: T) -> TReturns the argument unchanged.
impl<T, U> Into<U> for input_event
where
U: From<T>,
fn into(self) -> UCalls
U::from(self).That is, this conversion is whatever the implementation of
[From]<T> for Uchooses to do.
impl<T, U> TryFrom<U> for input_event
where
U: Into<T>,
type Error = never;fn try_from(value: U) -> Result<T, never>
impl<T, U> TryInto<U> for input_event
where
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error;fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>