[−][src]Struct input_linux::AutorepeatEvent
An event that configures the autorepeat behaviour of the input device.
Fields
time: EventTime
The timestamp associated with the event.
kind: AutorepeatKind
The kind of autorepeat event.
value: i32
The value of the event.
Implementations
impl<'a> AutorepeatEvent
[src]
pub const fn new(time: EventTime, kind: AutorepeatKind, 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 AutorepeatEvent
[src]
fn as_ref(&self) -> &InputEvent
[src]
impl AsRef<input_event> for AutorepeatEvent
[src]
impl Clone for AutorepeatEvent
[src]
fn clone(&self) -> AutorepeatEvent
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Copy for AutorepeatEvent
[src]
impl Debug for AutorepeatEvent
[src]
impl Eq for AutorepeatEvent
[src]
impl<'a> From<&'a AutorepeatEvent> for &'a InputEvent
[src]
fn from(event: &'a AutorepeatEvent) -> Self
[src]
impl<'a> From<&'a AutorepeatEvent> for InputEvent
[src]
fn from(event: &'a AutorepeatEvent) -> Self
[src]
impl<'a> From<&'a AutorepeatEvent> for EventRef<'a>
[src]
fn from(event: &'a AutorepeatEvent) -> Self
[src]
impl<'a> From<&'a mut AutorepeatEvent> for EventMut<'a>
[src]
fn from(event: &'a mut AutorepeatEvent) -> Self
[src]
impl From<AutorepeatEvent> for InputEvent
[src]
fn from(event: AutorepeatEvent) -> Self
[src]
impl From<AutorepeatEvent> for Event
[src]
fn from(event: AutorepeatEvent) -> Self
[src]
impl GenericEvent for AutorepeatEvent
[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 Hash for AutorepeatEvent
[src]
fn hash<__H: Hasher>(&self, state: &mut __H)
[src]
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
impl Ord for AutorepeatEvent
[src]
fn cmp(&self, other: &AutorepeatEvent) -> Ordering
[src]
#[must_use]fn max(self, other: Self) -> Self
1.21.0[src]
#[must_use]fn min(self, other: Self) -> Self
1.21.0[src]
#[must_use]fn clamp(self, min: Self, max: Self) -> Self
[src]
impl PartialEq<AutorepeatEvent> for AutorepeatEvent
[src]
fn eq(&self, other: &AutorepeatEvent) -> bool
[src]
fn ne(&self, other: &AutorepeatEvent) -> bool
[src]
impl PartialOrd<AutorepeatEvent> for AutorepeatEvent
[src]
fn partial_cmp(&self, other: &AutorepeatEvent) -> Option<Ordering>
[src]
fn lt(&self, other: &AutorepeatEvent) -> bool
[src]
fn le(&self, other: &AutorepeatEvent) -> bool
[src]
fn gt(&self, other: &AutorepeatEvent) -> bool
[src]
fn ge(&self, other: &AutorepeatEvent) -> bool
[src]
impl StructuralEq for AutorepeatEvent
[src]
impl StructuralPartialEq for AutorepeatEvent
[src]
impl<'a> TryFrom<&'a InputEvent> for &'a AutorepeatEvent
[src]
type Error = RangeError
The type returned in the event of a conversion error.
fn try_from(event: &'a InputEvent) -> Result<Self, Self::Error>
[src]
impl<'a> TryFrom<&'a mut InputEvent> for &'a mut AutorepeatEvent
[src]
type Error = RangeError
The type returned in the event of a conversion error.
fn try_from(event: &'a mut InputEvent) -> Result<Self, Self::Error>
[src]
impl TryFrom<InputEvent> for AutorepeatEvent
[src]
type Error = RangeError
The type returned in the event of a conversion error.
fn try_from(event: InputEvent) -> Result<Self, Self::Error>
[src]
Auto Trait Implementations
impl RefUnwindSafe for AutorepeatEvent
impl Send for AutorepeatEvent
impl Sync for AutorepeatEvent
impl Unpin for AutorepeatEvent
impl UnwindSafe for AutorepeatEvent
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,
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.
fn to_owned(&self) -> T
[src]
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.
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>,