Struct input_linux::InputEvent
source · #[repr(C)]pub struct InputEvent {
pub time: EventTime,
pub kind: EventKind,
pub code: u16,
pub value: i32,
}Expand description
A generic event.
Fields§
§time: EventTimeThe timestamp associated with the event.
kind: EventKindThe type of event that occurred.
code: u16The code of the event.
The meaning of this code depends on the kind of event. Using the typed
events via Event and EventRef is recommended.
value: i32The value of the event.
The interpretation of this value depends on the kind of event.
Implementations§
source§impl InputEvent
impl InputEvent
sourcepub fn with_raw(event: input_event) -> Result<Self, RangeError>
pub fn with_raw(event: input_event) -> Result<Self, RangeError>
Reinterprets a raw input_event.
sourcepub unsafe fn with_raw_unchecked(event: input_event) -> Self
pub unsafe fn with_raw_unchecked(event: input_event) -> Self
sourcepub fn into_bytes(self) -> [u8; 24]
pub fn into_bytes(self) -> [u8; 24]
Reinterpret this event as an array of bytes.
sourcepub unsafe fn as_bytes_mut(&mut self) -> &mut [u8; 24]
pub unsafe fn as_bytes_mut(&mut self) -> &mut [u8; 24]
Reinterpret this event as a mutable byte slice.
source§impl InputEvent
impl InputEvent
sourcepub fn from_raw(event: &input_event) -> Result<&Self, RangeError>
pub fn from_raw(event: &input_event) -> Result<&Self, RangeError>
Reinterprets a raw input_event reference.
sourcepub unsafe fn from_raw_unchecked(event: &input_event) -> &Self
pub unsafe fn from_raw_unchecked(event: &input_event) -> &Self
sourcepub fn from_raw_mut(event: &mut input_event) -> Result<&mut Self, RangeError>
pub fn from_raw_mut(event: &mut input_event) -> Result<&mut Self, RangeError>
Reinterprets a raw input_event into a mutable reference.
sourcepub unsafe fn from_raw_mut_unchecked(event: &mut input_event) -> &mut Self
pub unsafe fn from_raw_mut_unchecked(event: &mut input_event) -> &mut Self
Reinterprets a raw input_event into a mutable reference.
§Safety
The input event must have a valid event kind.
sourcepub fn into_raw(self) -> input_event
pub fn into_raw(self) -> input_event
Reinterprets the event as a raw input_event.
sourcepub fn as_raw(&self) -> &input_event
pub fn as_raw(&self) -> &input_event
Reinterprets the event as a raw input_event reference.
sourcepub unsafe fn as_raw_mut(&mut self) -> &mut input_event
pub unsafe fn as_raw_mut(&mut self) -> &mut input_event
Reinterprets the event as a mutable raw input_event.
Trait Implementations§
source§impl AsRef<InputEvent> for AbsoluteEvent
impl AsRef<InputEvent> for AbsoluteEvent
source§fn as_ref(&self) -> &InputEvent
fn as_ref(&self) -> &InputEvent
source§impl AsRef<InputEvent> for AutorepeatEvent
impl AsRef<InputEvent> for AutorepeatEvent
source§fn as_ref(&self) -> &InputEvent
fn as_ref(&self) -> &InputEvent
source§impl AsRef<InputEvent> for Event
impl AsRef<InputEvent> for Event
source§fn as_ref(&self) -> &InputEvent
fn as_ref(&self) -> &InputEvent
source§impl<'a> AsRef<InputEvent> for EventMut<'a>
impl<'a> AsRef<InputEvent> for EventMut<'a>
source§fn as_ref(&self) -> &InputEvent
fn as_ref(&self) -> &InputEvent
source§impl<'a> AsRef<InputEvent> for EventRef<'a>
impl<'a> AsRef<InputEvent> for EventRef<'a>
source§fn as_ref(&self) -> &InputEvent
fn as_ref(&self) -> &InputEvent
source§impl AsRef<InputEvent> for ForceFeedbackEvent
impl AsRef<InputEvent> for ForceFeedbackEvent
source§fn as_ref(&self) -> &InputEvent
fn as_ref(&self) -> &InputEvent
source§impl AsRef<InputEvent> for ForceFeedbackStatusEvent
impl AsRef<InputEvent> for ForceFeedbackStatusEvent
source§fn as_ref(&self) -> &InputEvent
fn as_ref(&self) -> &InputEvent
source§impl AsRef<InputEvent> for InputEvent
impl AsRef<InputEvent> for InputEvent
source§fn as_ref(&self) -> &InputEvent
fn as_ref(&self) -> &InputEvent
source§impl AsRef<InputEvent> for KeyEvent
impl AsRef<InputEvent> for KeyEvent
source§fn as_ref(&self) -> &InputEvent
fn as_ref(&self) -> &InputEvent
source§impl AsRef<InputEvent> for LedEvent
impl AsRef<InputEvent> for LedEvent
source§fn as_ref(&self) -> &InputEvent
fn as_ref(&self) -> &InputEvent
source§impl AsRef<InputEvent> for MiscEvent
impl AsRef<InputEvent> for MiscEvent
source§fn as_ref(&self) -> &InputEvent
fn as_ref(&self) -> &InputEvent
source§impl AsRef<InputEvent> for RelativeEvent
impl AsRef<InputEvent> for RelativeEvent
source§fn as_ref(&self) -> &InputEvent
fn as_ref(&self) -> &InputEvent
source§impl AsRef<InputEvent> for SoundEvent
impl AsRef<InputEvent> for SoundEvent
source§fn as_ref(&self) -> &InputEvent
fn as_ref(&self) -> &InputEvent
source§impl AsRef<InputEvent> for SwitchEvent
impl AsRef<InputEvent> for SwitchEvent
source§fn as_ref(&self) -> &InputEvent
fn as_ref(&self) -> &InputEvent
source§impl AsRef<InputEvent> for SynchronizeEvent
impl AsRef<InputEvent> for SynchronizeEvent
source§fn as_ref(&self) -> &InputEvent
fn as_ref(&self) -> &InputEvent
source§impl AsRef<InputEvent> for UInputEvent
impl AsRef<InputEvent> for UInputEvent
source§fn as_ref(&self) -> &InputEvent
fn as_ref(&self) -> &InputEvent
source§impl AsRef<input_event> for InputEvent
impl AsRef<input_event> for InputEvent
source§fn as_ref(&self) -> &input_event
fn as_ref(&self) -> &input_event
source§impl Clone for InputEvent
impl Clone for InputEvent
source§fn clone(&self) -> InputEvent
fn clone(&self) -> InputEvent
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Debug for InputEvent
impl Debug for InputEvent
source§impl<'de> Deserialize<'de> for InputEvent
impl<'de> Deserialize<'de> for InputEvent
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
§impl Encoder<InputEvent> for EventCodec
Available on crate features tokio-util-0_6 and codec only.
impl Encoder<InputEvent> for EventCodec
tokio-util-0_6 and codec only.§impl Encoder<InputEvent> for EventCodec
Available on crate features tokio-util-0_7 and codec only.
impl Encoder<InputEvent> for EventCodec
tokio-util-0_7 and codec only.source§impl<'a> From<&'a AbsoluteEvent> for &'a InputEvent
impl<'a> From<&'a AbsoluteEvent> for &'a InputEvent
source§fn from(event: &'a AbsoluteEvent) -> Self
fn from(event: &'a AbsoluteEvent) -> Self
source§impl<'a> From<&'a AbsoluteEvent> for InputEvent
impl<'a> From<&'a AbsoluteEvent> for InputEvent
source§fn from(event: &'a AbsoluteEvent) -> Self
fn from(event: &'a AbsoluteEvent) -> Self
source§impl<'a> From<&'a AutorepeatEvent> for &'a InputEvent
impl<'a> From<&'a AutorepeatEvent> for &'a InputEvent
source§fn from(event: &'a AutorepeatEvent) -> Self
fn from(event: &'a AutorepeatEvent) -> Self
source§impl<'a> From<&'a AutorepeatEvent> for InputEvent
impl<'a> From<&'a AutorepeatEvent> for InputEvent
source§fn from(event: &'a AutorepeatEvent) -> Self
fn from(event: &'a AutorepeatEvent) -> Self
source§impl<'a, 'b> From<&'a EventMut<'b>> for &'a InputEvent
impl<'a, 'b> From<&'a EventMut<'b>> for &'a InputEvent
source§impl<'a> From<&'a ForceFeedbackEvent> for &'a InputEvent
impl<'a> From<&'a ForceFeedbackEvent> for &'a InputEvent
source§fn from(event: &'a ForceFeedbackEvent) -> Self
fn from(event: &'a ForceFeedbackEvent) -> Self
source§impl<'a> From<&'a ForceFeedbackEvent> for InputEvent
impl<'a> From<&'a ForceFeedbackEvent> for InputEvent
source§fn from(event: &'a ForceFeedbackEvent) -> Self
fn from(event: &'a ForceFeedbackEvent) -> Self
source§impl<'a> From<&'a ForceFeedbackStatusEvent> for &'a InputEvent
impl<'a> From<&'a ForceFeedbackStatusEvent> for &'a InputEvent
source§fn from(event: &'a ForceFeedbackStatusEvent) -> Self
fn from(event: &'a ForceFeedbackStatusEvent) -> Self
source§impl<'a> From<&'a ForceFeedbackStatusEvent> for InputEvent
impl<'a> From<&'a ForceFeedbackStatusEvent> for InputEvent
source§fn from(event: &'a ForceFeedbackStatusEvent) -> Self
fn from(event: &'a ForceFeedbackStatusEvent) -> Self
source§impl<'a> From<&'a InputEvent> for &'a input_event
impl<'a> From<&'a InputEvent> for &'a input_event
source§fn from(event: &'a InputEvent) -> Self
fn from(event: &'a InputEvent) -> Self
source§impl<'a> From<&'a KeyEvent> for &'a InputEvent
impl<'a> From<&'a KeyEvent> for &'a InputEvent
source§impl<'a> From<&'a KeyEvent> for InputEvent
impl<'a> From<&'a KeyEvent> for InputEvent
source§impl<'a> From<&'a LedEvent> for &'a InputEvent
impl<'a> From<&'a LedEvent> for &'a InputEvent
source§impl<'a> From<&'a LedEvent> for InputEvent
impl<'a> From<&'a LedEvent> for InputEvent
source§impl<'a> From<&'a MiscEvent> for &'a InputEvent
impl<'a> From<&'a MiscEvent> for &'a InputEvent
source§impl<'a> From<&'a MiscEvent> for InputEvent
impl<'a> From<&'a MiscEvent> for InputEvent
source§impl<'a> From<&'a RelativeEvent> for &'a InputEvent
impl<'a> From<&'a RelativeEvent> for &'a InputEvent
source§fn from(event: &'a RelativeEvent) -> Self
fn from(event: &'a RelativeEvent) -> Self
source§impl<'a> From<&'a RelativeEvent> for InputEvent
impl<'a> From<&'a RelativeEvent> for InputEvent
source§fn from(event: &'a RelativeEvent) -> Self
fn from(event: &'a RelativeEvent) -> Self
source§impl<'a> From<&'a SoundEvent> for &'a InputEvent
impl<'a> From<&'a SoundEvent> for &'a InputEvent
source§fn from(event: &'a SoundEvent) -> Self
fn from(event: &'a SoundEvent) -> Self
source§impl<'a> From<&'a SoundEvent> for InputEvent
impl<'a> From<&'a SoundEvent> for InputEvent
source§fn from(event: &'a SoundEvent) -> Self
fn from(event: &'a SoundEvent) -> Self
source§impl<'a> From<&'a SwitchEvent> for &'a InputEvent
impl<'a> From<&'a SwitchEvent> for &'a InputEvent
source§fn from(event: &'a SwitchEvent) -> Self
fn from(event: &'a SwitchEvent) -> Self
source§impl<'a> From<&'a SwitchEvent> for InputEvent
impl<'a> From<&'a SwitchEvent> for InputEvent
source§fn from(event: &'a SwitchEvent) -> Self
fn from(event: &'a SwitchEvent) -> Self
source§impl<'a> From<&'a SynchronizeEvent> for &'a InputEvent
impl<'a> From<&'a SynchronizeEvent> for &'a InputEvent
source§fn from(event: &'a SynchronizeEvent) -> Self
fn from(event: &'a SynchronizeEvent) -> Self
source§impl<'a> From<&'a SynchronizeEvent> for InputEvent
impl<'a> From<&'a SynchronizeEvent> for InputEvent
source§fn from(event: &'a SynchronizeEvent) -> Self
fn from(event: &'a SynchronizeEvent) -> Self
source§impl<'a> From<&'a UInputEvent> for &'a InputEvent
impl<'a> From<&'a UInputEvent> for &'a InputEvent
source§fn from(event: &'a UInputEvent) -> Self
fn from(event: &'a UInputEvent) -> Self
source§impl<'a> From<&'a UInputEvent> for InputEvent
impl<'a> From<&'a UInputEvent> for InputEvent
source§fn from(event: &'a UInputEvent) -> Self
fn from(event: &'a UInputEvent) -> Self
source§impl From<AbsoluteEvent> for InputEvent
impl From<AbsoluteEvent> for InputEvent
source§fn from(event: AbsoluteEvent) -> Self
fn from(event: AbsoluteEvent) -> Self
source§impl From<AutorepeatEvent> for InputEvent
impl From<AutorepeatEvent> for InputEvent
source§fn from(event: AutorepeatEvent) -> Self
fn from(event: AutorepeatEvent) -> Self
source§impl From<Event> for InputEvent
impl From<Event> for InputEvent
source§impl<'a> From<EventMut<'a>> for &'a InputEvent
impl<'a> From<EventMut<'a>> for &'a InputEvent
source§impl<'a> From<EventRef<'a>> for &'a InputEvent
impl<'a> From<EventRef<'a>> for &'a InputEvent
source§impl From<ForceFeedbackEvent> for InputEvent
impl From<ForceFeedbackEvent> for InputEvent
source§fn from(event: ForceFeedbackEvent) -> Self
fn from(event: ForceFeedbackEvent) -> Self
source§impl From<ForceFeedbackStatusEvent> for InputEvent
impl From<ForceFeedbackStatusEvent> for InputEvent
source§fn from(event: ForceFeedbackStatusEvent) -> Self
fn from(event: ForceFeedbackStatusEvent) -> Self
source§impl From<InputEvent> for Event
impl From<InputEvent> for Event
source§fn from(event: InputEvent) -> Self
fn from(event: InputEvent) -> Self
source§impl From<InputEvent> for input_event
impl From<InputEvent> for input_event
source§fn from(event: InputEvent) -> Self
fn from(event: InputEvent) -> Self
source§impl From<KeyEvent> for InputEvent
impl From<KeyEvent> for InputEvent
source§impl From<LedEvent> for InputEvent
impl From<LedEvent> for InputEvent
source§impl From<MiscEvent> for InputEvent
impl From<MiscEvent> for InputEvent
source§impl From<RelativeEvent> for InputEvent
impl From<RelativeEvent> for InputEvent
source§fn from(event: RelativeEvent) -> Self
fn from(event: RelativeEvent) -> Self
source§impl From<SoundEvent> for InputEvent
impl From<SoundEvent> for InputEvent
source§fn from(event: SoundEvent) -> Self
fn from(event: SoundEvent) -> Self
source§impl From<SwitchEvent> for InputEvent
impl From<SwitchEvent> for InputEvent
source§fn from(event: SwitchEvent) -> Self
fn from(event: SwitchEvent) -> Self
source§impl From<SynchronizeEvent> for InputEvent
impl From<SynchronizeEvent> for InputEvent
source§fn from(event: SynchronizeEvent) -> Self
fn from(event: SynchronizeEvent) -> Self
source§impl From<UInputEvent> for InputEvent
impl From<UInputEvent> for InputEvent
source§fn from(event: UInputEvent) -> Self
fn from(event: UInputEvent) -> Self
source§impl GenericEvent for InputEvent
impl GenericEvent for InputEvent
source§fn event_kind(&self) -> EventKind
fn event_kind(&self) -> EventKind
source§fn from_ref(event: &InputEvent) -> Result<&Self, RangeError>
fn from_ref(event: &InputEvent) -> Result<&Self, RangeError>
source§fn from_mut(event: &mut InputEvent) -> Result<&mut Self, RangeError>
fn from_mut(event: &mut InputEvent) -> Result<&mut Self, RangeError>
source§fn with_event(event: InputEvent) -> Result<Self, RangeError>
fn with_event(event: InputEvent) -> Result<Self, RangeError>
source§unsafe fn with_event_unchecked(event: InputEvent) -> Self
unsafe fn with_event_unchecked(event: InputEvent) -> Self
source§impl Hash for InputEvent
impl Hash for InputEvent
source§impl Ord for InputEvent
impl Ord for InputEvent
source§fn cmp(&self, other: &InputEvent) -> Ordering
fn cmp(&self, other: &InputEvent) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
source§impl PartialEq for InputEvent
impl PartialEq for InputEvent
source§fn eq(&self, other: &InputEvent) -> bool
fn eq(&self, other: &InputEvent) -> bool
self and other values to be equal, and is used
by ==.source§impl PartialOrd for InputEvent
impl PartialOrd for InputEvent
source§fn partial_cmp(&self, other: &InputEvent) -> Option<Ordering>
fn partial_cmp(&self, other: &InputEvent) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
self and other) and is used by the <=
operator. Read moresource§impl Serialize for InputEvent
impl Serialize for InputEvent
source§impl<'a> TryFrom<&'a InputEvent> for &'a AbsoluteEvent
impl<'a> TryFrom<&'a InputEvent> for &'a AbsoluteEvent
§type Error = RangeError
type Error = RangeError
source§impl<'a> TryFrom<&'a InputEvent> for &'a AutorepeatEvent
impl<'a> TryFrom<&'a InputEvent> for &'a AutorepeatEvent
§type Error = RangeError
type Error = RangeError
source§impl<'a> TryFrom<&'a InputEvent> for &'a ForceFeedbackEvent
impl<'a> TryFrom<&'a InputEvent> for &'a ForceFeedbackEvent
§type Error = RangeError
type Error = RangeError
source§impl<'a> TryFrom<&'a InputEvent> for &'a ForceFeedbackStatusEvent
impl<'a> TryFrom<&'a InputEvent> for &'a ForceFeedbackStatusEvent
§type Error = RangeError
type Error = RangeError
source§impl<'a> TryFrom<&'a InputEvent> for &'a KeyEvent
impl<'a> TryFrom<&'a InputEvent> for &'a KeyEvent
§type Error = RangeError
type Error = RangeError
source§impl<'a> TryFrom<&'a InputEvent> for &'a LedEvent
impl<'a> TryFrom<&'a InputEvent> for &'a LedEvent
§type Error = RangeError
type Error = RangeError
source§impl<'a> TryFrom<&'a InputEvent> for &'a MiscEvent
impl<'a> TryFrom<&'a InputEvent> for &'a MiscEvent
§type Error = RangeError
type Error = RangeError
source§impl<'a> TryFrom<&'a InputEvent> for &'a RelativeEvent
impl<'a> TryFrom<&'a InputEvent> for &'a RelativeEvent
§type Error = RangeError
type Error = RangeError
source§impl<'a> TryFrom<&'a InputEvent> for &'a SoundEvent
impl<'a> TryFrom<&'a InputEvent> for &'a SoundEvent
§type Error = RangeError
type Error = RangeError
source§impl<'a> TryFrom<&'a InputEvent> for &'a SwitchEvent
impl<'a> TryFrom<&'a InputEvent> for &'a SwitchEvent
§type Error = RangeError
type Error = RangeError
source§impl<'a> TryFrom<&'a InputEvent> for &'a SynchronizeEvent
impl<'a> TryFrom<&'a InputEvent> for &'a SynchronizeEvent
§type Error = RangeError
type Error = RangeError
source§impl<'a> TryFrom<&'a InputEvent> for &'a UInputEvent
impl<'a> TryFrom<&'a InputEvent> for &'a UInputEvent
§type Error = RangeError
type Error = RangeError
source§impl<'a> TryFrom<&'a input_event> for &'a InputEvent
impl<'a> TryFrom<&'a input_event> for &'a InputEvent
§type Error = RangeError
type Error = RangeError
source§impl<'a> TryFrom<&'a mut InputEvent> for &'a mut AbsoluteEvent
impl<'a> TryFrom<&'a mut InputEvent> for &'a mut AbsoluteEvent
§type Error = RangeError
type Error = RangeError
source§impl<'a> TryFrom<&'a mut InputEvent> for &'a mut AutorepeatEvent
impl<'a> TryFrom<&'a mut InputEvent> for &'a mut AutorepeatEvent
§type Error = RangeError
type Error = RangeError
source§impl<'a> TryFrom<&'a mut InputEvent> for &'a mut ForceFeedbackEvent
impl<'a> TryFrom<&'a mut InputEvent> for &'a mut ForceFeedbackEvent
§type Error = RangeError
type Error = RangeError
source§impl<'a> TryFrom<&'a mut InputEvent> for &'a mut ForceFeedbackStatusEvent
impl<'a> TryFrom<&'a mut InputEvent> for &'a mut ForceFeedbackStatusEvent
§type Error = RangeError
type Error = RangeError
source§impl<'a> TryFrom<&'a mut InputEvent> for &'a mut KeyEvent
impl<'a> TryFrom<&'a mut InputEvent> for &'a mut KeyEvent
§type Error = RangeError
type Error = RangeError
source§impl<'a> TryFrom<&'a mut InputEvent> for &'a mut LedEvent
impl<'a> TryFrom<&'a mut InputEvent> for &'a mut LedEvent
§type Error = RangeError
type Error = RangeError
source§impl<'a> TryFrom<&'a mut InputEvent> for &'a mut MiscEvent
impl<'a> TryFrom<&'a mut InputEvent> for &'a mut MiscEvent
§type Error = RangeError
type Error = RangeError
source§impl<'a> TryFrom<&'a mut InputEvent> for &'a mut RelativeEvent
impl<'a> TryFrom<&'a mut InputEvent> for &'a mut RelativeEvent
§type Error = RangeError
type Error = RangeError
source§impl<'a> TryFrom<&'a mut InputEvent> for &'a mut SoundEvent
impl<'a> TryFrom<&'a mut InputEvent> for &'a mut SoundEvent
§type Error = RangeError
type Error = RangeError
source§impl<'a> TryFrom<&'a mut InputEvent> for &'a mut SwitchEvent
impl<'a> TryFrom<&'a mut InputEvent> for &'a mut SwitchEvent
§type Error = RangeError
type Error = RangeError
source§impl<'a> TryFrom<&'a mut InputEvent> for &'a mut SynchronizeEvent
impl<'a> TryFrom<&'a mut InputEvent> for &'a mut SynchronizeEvent
§type Error = RangeError
type Error = RangeError
source§impl<'a> TryFrom<&'a mut InputEvent> for &'a mut UInputEvent
impl<'a> TryFrom<&'a mut InputEvent> for &'a mut UInputEvent
§type Error = RangeError
type Error = RangeError
source§impl<'a> TryFrom<&'a mut input_event> for &'a mut InputEvent
impl<'a> TryFrom<&'a mut input_event> for &'a mut InputEvent
§type Error = RangeError
type Error = RangeError
source§impl TryFrom<InputEvent> for AbsoluteEvent
impl TryFrom<InputEvent> for AbsoluteEvent
§type Error = RangeError
type Error = RangeError
source§impl TryFrom<InputEvent> for AutorepeatEvent
impl TryFrom<InputEvent> for AutorepeatEvent
§type Error = RangeError
type Error = RangeError
source§impl TryFrom<InputEvent> for ForceFeedbackEvent
impl TryFrom<InputEvent> for ForceFeedbackEvent
§type Error = RangeError
type Error = RangeError
source§impl TryFrom<InputEvent> for ForceFeedbackStatusEvent
impl TryFrom<InputEvent> for ForceFeedbackStatusEvent
§type Error = RangeError
type Error = RangeError
source§impl TryFrom<InputEvent> for KeyEvent
impl TryFrom<InputEvent> for KeyEvent
§type Error = RangeError
type Error = RangeError
source§impl TryFrom<InputEvent> for LedEvent
impl TryFrom<InputEvent> for LedEvent
§type Error = RangeError
type Error = RangeError
source§impl TryFrom<InputEvent> for MiscEvent
impl TryFrom<InputEvent> for MiscEvent
§type Error = RangeError
type Error = RangeError
source§impl TryFrom<InputEvent> for RelativeEvent
impl TryFrom<InputEvent> for RelativeEvent
§type Error = RangeError
type Error = RangeError
source§impl TryFrom<InputEvent> for SoundEvent
impl TryFrom<InputEvent> for SoundEvent
§type Error = RangeError
type Error = RangeError
source§impl TryFrom<InputEvent> for SwitchEvent
impl TryFrom<InputEvent> for SwitchEvent
§type Error = RangeError
type Error = RangeError
source§impl TryFrom<InputEvent> for SynchronizeEvent
impl TryFrom<InputEvent> for SynchronizeEvent
§type Error = RangeError
type Error = RangeError
source§impl TryFrom<InputEvent> for UInputEvent
impl TryFrom<InputEvent> for UInputEvent
§type Error = RangeError
type Error = RangeError
source§impl TryFrom<input_event> for InputEvent
impl TryFrom<input_event> for InputEvent
§type Error = RangeError
type Error = RangeError
impl Copy for InputEvent
impl Eq for InputEvent
impl StructuralPartialEq for InputEvent
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
source§impl<T> CloneToUninit for Twhere
T: Copy,
impl<T> CloneToUninit for Twhere
T: Copy,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit)source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit)