[−][src]Struct input_linux::UInputEvent
A special event type used to send force-feedback events to uinput.
Fields
time: EventTimeThe timestamp associated with the event.
code: UInputKindThe code of the event.
value: i32The unique request ID.
Implementations
impl<'a> UInputEvent[src]
pub const fn new(time: EventTime, code: UInputKind, value: i32) -> Self[src]
Creates a new event from the given code and value.
pub unsafe fn from_event<E: AsRef<input_event>>(event: &E) -> &Self[src]
Reinterpret a generic event without checking for validity.
pub unsafe fn from_event_mut(event: &mut InputEvent) -> &mut Self[src]
Reinterpret a mutable generic event without checking for validity.
pub fn as_event(&self) -> &InputEvent[src]
A generic input event reference.
pub unsafe fn as_event_mut(&mut self) -> &mut InputEvent[src]
A mutable generic input event reference.
Trait Implementations
impl AsRef<InputEvent> for UInputEvent[src]
pub fn as_ref(&self) -> &InputEvent[src]
impl AsRef<input_event> for UInputEvent[src]
impl Clone for UInputEvent[src]
pub fn clone(&self) -> UInputEvent[src]
pub fn clone_from(&mut self, source: &Self)1.0.0[src]
impl Copy for UInputEvent[src]
impl Debug for UInputEvent[src]
impl Eq for UInputEvent[src]
impl<'a> From<&'a UInputEvent> for &'a InputEvent[src]
pub fn from(event: &'a UInputEvent) -> Self[src]
impl<'a> From<&'a UInputEvent> for InputEvent[src]
pub fn from(event: &'a UInputEvent) -> Self[src]
impl<'a> From<&'a UInputEvent> for EventRef<'a>[src]
pub fn from(event: &'a UInputEvent) -> Self[src]
impl<'a> From<&'a mut UInputEvent> for EventMut<'a>[src]
pub fn from(event: &'a mut UInputEvent) -> Self[src]
impl From<UInputEvent> for InputEvent[src]
pub fn from(event: UInputEvent) -> Self[src]
impl From<UInputEvent> for Event[src]
pub fn from(event: UInputEvent) -> Self[src]
impl GenericEvent for UInputEvent[src]
pub fn event_kind(&self) -> EventKind[src]
pub fn time(&self) -> &EventTime[src]
pub fn code(&self) -> u16[src]
pub fn value(&self) -> i32[src]
pub fn from_ref(event: &InputEvent) -> Result<&Self, RangeError>[src]
pub fn from_mut(event: &mut InputEvent) -> Result<&mut Self, RangeError>[src]
impl Hash for UInputEvent[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 Ord for UInputEvent[src]
pub fn cmp(&self, other: &UInputEvent) -> Ordering[src]
#[must_use]pub fn max(self, other: Self) -> Self1.21.0[src]
#[must_use]pub fn min(self, other: Self) -> Self1.21.0[src]
#[must_use]pub fn clamp(self, min: Self, max: Self) -> Self1.50.0[src]
impl PartialEq<UInputEvent> for UInputEvent[src]
pub fn eq(&self, other: &UInputEvent) -> bool[src]
pub fn ne(&self, other: &UInputEvent) -> bool[src]
impl PartialOrd<UInputEvent> for UInputEvent[src]
pub fn partial_cmp(&self, other: &UInputEvent) -> Option<Ordering>[src]
pub fn lt(&self, other: &UInputEvent) -> bool[src]
pub fn le(&self, other: &UInputEvent) -> bool[src]
pub fn gt(&self, other: &UInputEvent) -> bool[src]
pub fn ge(&self, other: &UInputEvent) -> bool[src]
impl StructuralEq for UInputEvent[src]
impl StructuralPartialEq for UInputEvent[src]
impl<'a> TryFrom<&'a InputEvent> for &'a UInputEvent[src]
type Error = RangeError
The type returned in the event of a conversion error.
pub fn try_from(event: &'a InputEvent) -> Result<Self, Self::Error>[src]
impl<'a> TryFrom<&'a mut InputEvent> for &'a mut UInputEvent[src]
type Error = RangeError
The type returned in the event of a conversion error.
pub fn try_from(event: &'a mut InputEvent) -> Result<Self, Self::Error>[src]
impl TryFrom<InputEvent> for UInputEvent[src]
type Error = RangeError
The type returned in the event of a conversion error.
pub fn try_from(event: InputEvent) -> Result<Self, Self::Error>[src]
Auto Trait Implementations
impl RefUnwindSafe for UInputEvent
impl Send for UInputEvent
impl Sync for UInputEvent
impl Unpin for UInputEvent
impl UnwindSafe for UInputEvent
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>,