[−][src]Enum input_linux::EventRef
A reference to an input event.
Variants
Synchronize(&'a SynchronizeEvent)
Key(&'a KeyEvent)
Relative(&'a RelativeEvent)
Absolute(&'a AbsoluteEvent)
Switch(&'a SwitchEvent)
Misc(&'a MiscEvent)
Led(&'a LedEvent)
Autorepeat(&'a AutorepeatEvent)
Sound(&'a SoundEvent)
UInput(&'a UInputEvent)
Unknown(&'a InputEvent)
Unknown event type.
Implementations
impl<'a> EventRef<'a>
[src]
pub fn new(event: &'a InputEvent) -> Result<Self, RangeError>
[src]
Wraps the generic InputEvent
into an event.
Trait Implementations
impl<'a> AsRef<InputEvent> for EventRef<'a>
[src]
pub fn as_ref(&self) -> &InputEvent
[src]
impl<'a> Clone for EventRef<'a>
[src]
impl<'a> Copy for EventRef<'a>
[src]
impl<'a> Debug for EventRef<'a>
[src]
impl<'a> Eq for EventRef<'a>
[src]
impl<'a> From<&'a AbsoluteEvent> for EventRef<'a>
[src]
pub fn from(event: &'a AbsoluteEvent) -> Self
[src]
impl<'a> From<&'a AutorepeatEvent> for EventRef<'a>
[src]
pub fn from(event: &'a AutorepeatEvent) -> Self
[src]
impl<'a> From<&'a Event> for EventRef<'a>
[src]
impl<'a> From<&'a KeyEvent> for EventRef<'a>
[src]
impl<'a> From<&'a LedEvent> for EventRef<'a>
[src]
impl<'a> From<&'a MiscEvent> for EventRef<'a>
[src]
impl<'a> From<&'a RelativeEvent> for EventRef<'a>
[src]
pub fn from(event: &'a RelativeEvent) -> Self
[src]
impl<'a> From<&'a SoundEvent> for EventRef<'a>
[src]
pub fn from(event: &'a SoundEvent) -> Self
[src]
impl<'a> From<&'a SwitchEvent> for EventRef<'a>
[src]
pub fn from(event: &'a SwitchEvent) -> Self
[src]
impl<'a> From<&'a SynchronizeEvent> for EventRef<'a>
[src]
pub fn from(event: &'a SynchronizeEvent) -> Self
[src]
impl<'a> From<&'a UInputEvent> for EventRef<'a>
[src]
pub fn from(event: &'a UInputEvent) -> Self
[src]
impl<'a> From<EventRef<'a>> for &'a InputEvent
[src]
impl<'a> Hash for EventRef<'a>
[src]
pub fn hash<__H: Hasher>(&self, state: &mut __H)
[src]
pub fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
impl<'a> Ord for EventRef<'a>
[src]
pub fn cmp(&self, other: &EventRef<'a>) -> Ordering
[src]
#[must_use]pub fn max(self, other: Self) -> Self
1.21.0[src]
#[must_use]pub fn min(self, other: Self) -> Self
1.21.0[src]
#[must_use]pub fn clamp(self, min: Self, max: Self) -> Self
1.50.0[src]
impl<'a> PartialEq<EventRef<'a>> for EventRef<'a>
[src]
pub fn eq(&self, other: &EventRef<'a>) -> bool
[src]
pub fn ne(&self, other: &EventRef<'a>) -> bool
[src]
impl<'a> PartialOrd<EventRef<'a>> for EventRef<'a>
[src]
pub fn partial_cmp(&self, other: &EventRef<'a>) -> Option<Ordering>
[src]
pub fn lt(&self, other: &EventRef<'a>) -> bool
[src]
pub fn le(&self, other: &EventRef<'a>) -> bool
[src]
pub fn gt(&self, other: &EventRef<'a>) -> bool
[src]
pub fn ge(&self, other: &EventRef<'a>) -> bool
[src]
impl<'a> StructuralEq for EventRef<'a>
[src]
impl<'a> StructuralPartialEq for EventRef<'a>
[src]
Auto Trait Implementations
impl<'a> RefUnwindSafe for EventRef<'a>
impl<'a> Send for EventRef<'a>
impl<'a> Sync for EventRef<'a>
impl<'a> Unpin for EventRef<'a>
impl<'a> UnwindSafe for EventRef<'a>
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,