Struct input_linux::InputEvent
[−]
[src]
#[repr(C)]pub struct InputEvent { pub time: EventTime, pub kind: EventKind, pub code: u16, pub value: i32, }
Fields
time: EventTime
kind: EventKind
code: u16
value: i32
Methods
impl InputEvent
[src]
pub fn from_raw(event: &input_event) -> Result<&Self, RangeError>
[src]
pub fn from_raw_mut(event: &mut input_event) -> Result<&mut Self, RangeError>
[src]
pub fn as_raw(&self) -> &input_event
[src]
pub unsafe fn as_raw_mut(&mut self) -> &mut input_event
[src]
Trait Implementations
impl Copy for InputEvent
[src]
impl Clone for InputEvent
[src]
fn clone(&self) -> InputEvent
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl PartialOrd for InputEvent
[src]
fn partial_cmp(&self, __arg_0: &InputEvent) -> Option<Ordering>
[src]
This method returns an ordering between self
and other
values if one exists. Read more
fn lt(&self, __arg_0: &InputEvent) -> bool
[src]
This method tests less than (for self
and other
) and is used by the <
operator. Read more
fn le(&self, __arg_0: &InputEvent) -> bool
[src]
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
fn gt(&self, __arg_0: &InputEvent) -> bool
[src]
This method tests greater than (for self
and other
) and is used by the >
operator. Read more
fn ge(&self, __arg_0: &InputEvent) -> bool
[src]
This method tests greater than or equal to (for self
and other
) and is used by the >=
operator. Read more
impl Ord for InputEvent
[src]
fn cmp(&self, __arg_0: &InputEvent) -> Ordering
[src]
This method returns an Ordering
between self
and other
. Read more
fn max(self, other: Self) -> Self
1.21.0[src]
Compares and returns the maximum of two values. Read more
fn min(self, other: Self) -> Self
1.21.0[src]
Compares and returns the minimum of two values. Read more
impl PartialEq for InputEvent
[src]
fn eq(&self, __arg_0: &InputEvent) -> bool
[src]
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &InputEvent) -> bool
[src]
This method tests for !=
.
impl Eq for InputEvent
[src]
impl Hash for InputEvent
[src]
fn hash<__H: Hasher>(&self, __arg_0: &mut __H)
[src]
Feeds this value into the given [Hasher
]. Read more
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
Feeds a slice of this type into the given [Hasher
]. Read more
impl Debug for InputEvent
[src]
fn fmt(&self, __arg_0: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more
impl<'a> From<&'a SynchronizeEvent> for &'a InputEvent
[src]
fn from(event: &'a SynchronizeEvent) -> Self
[src]
Performs the conversion.
impl<'a> From<&'a SynchronizeEvent> for InputEvent
[src]
fn from(event: &'a SynchronizeEvent) -> Self
[src]
Performs the conversion.
impl From<SynchronizeEvent> for InputEvent
[src]
fn from(event: SynchronizeEvent) -> Self
[src]
Performs the conversion.
impl AsRef<InputEvent> for SynchronizeEvent
[src]
fn as_ref(&self) -> &InputEvent
[src]
Performs the conversion.
impl<'a> From<&'a KeyEvent> for &'a InputEvent
[src]
impl<'a> From<&'a KeyEvent> for InputEvent
[src]
impl From<KeyEvent> for InputEvent
[src]
impl AsRef<InputEvent> for KeyEvent
[src]
fn as_ref(&self) -> &InputEvent
[src]
Performs the conversion.
impl<'a> From<&'a RelativeEvent> for &'a InputEvent
[src]
fn from(event: &'a RelativeEvent) -> Self
[src]
Performs the conversion.
impl<'a> From<&'a RelativeEvent> for InputEvent
[src]
fn from(event: &'a RelativeEvent) -> Self
[src]
Performs the conversion.
impl From<RelativeEvent> for InputEvent
[src]
fn from(event: RelativeEvent) -> Self
[src]
Performs the conversion.
impl AsRef<InputEvent> for RelativeEvent
[src]
fn as_ref(&self) -> &InputEvent
[src]
Performs the conversion.
impl<'a> From<&'a AbsoluteEvent> for &'a InputEvent
[src]
fn from(event: &'a AbsoluteEvent) -> Self
[src]
Performs the conversion.
impl<'a> From<&'a AbsoluteEvent> for InputEvent
[src]
fn from(event: &'a AbsoluteEvent) -> Self
[src]
Performs the conversion.
impl From<AbsoluteEvent> for InputEvent
[src]
fn from(event: AbsoluteEvent) -> Self
[src]
Performs the conversion.
impl AsRef<InputEvent> for AbsoluteEvent
[src]
fn as_ref(&self) -> &InputEvent
[src]
Performs the conversion.
impl<'a> From<&'a SwitchEvent> for &'a InputEvent
[src]
fn from(event: &'a SwitchEvent) -> Self
[src]
Performs the conversion.
impl<'a> From<&'a SwitchEvent> for InputEvent
[src]
fn from(event: &'a SwitchEvent) -> Self
[src]
Performs the conversion.
impl From<SwitchEvent> for InputEvent
[src]
fn from(event: SwitchEvent) -> Self
[src]
Performs the conversion.
impl AsRef<InputEvent> for SwitchEvent
[src]
fn as_ref(&self) -> &InputEvent
[src]
Performs the conversion.
impl<'a> From<&'a MiscEvent> for &'a InputEvent
[src]
impl<'a> From<&'a MiscEvent> for InputEvent
[src]
impl From<MiscEvent> for InputEvent
[src]
impl AsRef<InputEvent> for MiscEvent
[src]
fn as_ref(&self) -> &InputEvent
[src]
Performs the conversion.
impl<'a> From<&'a LedEvent> for &'a InputEvent
[src]
impl<'a> From<&'a LedEvent> for InputEvent
[src]
impl From<LedEvent> for InputEvent
[src]
impl AsRef<InputEvent> for LedEvent
[src]
fn as_ref(&self) -> &InputEvent
[src]
Performs the conversion.
impl<'a> From<&'a AutorepeatEvent> for &'a InputEvent
[src]
fn from(event: &'a AutorepeatEvent) -> Self
[src]
Performs the conversion.
impl<'a> From<&'a AutorepeatEvent> for InputEvent
[src]
fn from(event: &'a AutorepeatEvent) -> Self
[src]
Performs the conversion.
impl From<AutorepeatEvent> for InputEvent
[src]
fn from(event: AutorepeatEvent) -> Self
[src]
Performs the conversion.
impl AsRef<InputEvent> for AutorepeatEvent
[src]
fn as_ref(&self) -> &InputEvent
[src]
Performs the conversion.
impl<'a> From<&'a SoundEvent> for &'a InputEvent
[src]
fn from(event: &'a SoundEvent) -> Self
[src]
Performs the conversion.
impl<'a> From<&'a SoundEvent> for InputEvent
[src]
fn from(event: &'a SoundEvent) -> Self
[src]
Performs the conversion.
impl From<SoundEvent> for InputEvent
[src]
fn from(event: SoundEvent) -> Self
[src]
Performs the conversion.
impl AsRef<InputEvent> for SoundEvent
[src]
fn as_ref(&self) -> &InputEvent
[src]
Performs the conversion.
impl<'a> From<&'a UInputEvent> for &'a InputEvent
[src]
fn from(event: &'a UInputEvent) -> Self
[src]
Performs the conversion.
impl<'a> From<&'a UInputEvent> for InputEvent
[src]
fn from(event: &'a UInputEvent) -> Self
[src]
Performs the conversion.
impl From<UInputEvent> for InputEvent
[src]
fn from(event: UInputEvent) -> Self
[src]
Performs the conversion.
impl AsRef<InputEvent> for UInputEvent
[src]
fn as_ref(&self) -> &InputEvent
[src]
Performs the conversion.
impl AsRef<input_event> for InputEvent
[src]
fn as_ref(&self) -> &input_event
[src]
Performs the conversion.
impl GenericEvent for InputEvent
[src]
fn event_kind(&self) -> EventKind
[src]
fn time(&self) -> &EventTime
[src]
fn code(&self) -> u16
[src]
fn value(&self) -> i32
[src]
fn from_ref(event: &InputEvent) -> Result<&Self, RangeError>
[src]
fn from_mut(event: &mut InputEvent) -> Result<&mut Self, RangeError>
[src]
impl AsRef<InputEvent> for InputEvent
[src]
fn as_ref(&self) -> &InputEvent
[src]
Performs the conversion.
impl From<Event> for InputEvent
[src]
impl<'a> From<EventRef<'a>> for &'a InputEvent
[src]
impl<'a> From<&'a EventMut<'a>> for &'a InputEvent
[src]
impl AsRef<InputEvent> for Event
[src]
fn as_ref(&self) -> &InputEvent
[src]
Performs the conversion.
impl<'a> AsRef<InputEvent> for EventRef<'a>
[src]
fn as_ref(&self) -> &InputEvent
[src]
Performs the conversion.
impl<'a> AsRef<InputEvent> for EventMut<'a>
[src]
fn as_ref(&self) -> &InputEvent
[src]
Performs the conversion.