[−][src]Struct input_linux::SynchronizeEvent
Synchronization events are used by evdev to group events or convey other out-of-band information.
Fields
time: EventTimeThe timestamp associated with the event.
kind: SynchronizeKindThe type of synchronization event.
value: i32An associated value with the event.
Implementations
impl SynchronizeEvent[src]
impl<'a> SynchronizeEvent[src]
pub const fn new(time: EventTime, kind: SynchronizeKind, 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 SynchronizeEvent[src]
pub fn as_ref(&self) -> &InputEvent[src]
impl AsRef<input_event> for SynchronizeEvent[src]
impl Clone for SynchronizeEvent[src]
pub fn clone(&self) -> SynchronizeEvent[src]
pub fn clone_from(&mut self, source: &Self)1.0.0[src]
impl Copy for SynchronizeEvent[src]
impl Debug for SynchronizeEvent[src]
impl Eq for SynchronizeEvent[src]
impl<'a> From<&'a SynchronizeEvent> for &'a InputEvent[src]
pub fn from(event: &'a SynchronizeEvent) -> Self[src]
impl<'a> From<&'a SynchronizeEvent> for InputEvent[src]
pub fn from(event: &'a SynchronizeEvent) -> Self[src]
impl<'a> From<&'a SynchronizeEvent> for EventRef<'a>[src]
pub fn from(event: &'a SynchronizeEvent) -> Self[src]
impl<'a> From<&'a mut SynchronizeEvent> for EventMut<'a>[src]
pub fn from(event: &'a mut SynchronizeEvent) -> Self[src]
impl From<SynchronizeEvent> for InputEvent[src]
pub fn from(event: SynchronizeEvent) -> Self[src]
impl From<SynchronizeEvent> for Event[src]
pub fn from(event: SynchronizeEvent) -> Self[src]
impl GenericEvent for SynchronizeEvent[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 SynchronizeEvent[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 SynchronizeEvent[src]
pub fn cmp(&self, other: &SynchronizeEvent) -> 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<SynchronizeEvent> for SynchronizeEvent[src]
pub fn eq(&self, other: &SynchronizeEvent) -> bool[src]
pub fn ne(&self, other: &SynchronizeEvent) -> bool[src]
impl PartialOrd<SynchronizeEvent> for SynchronizeEvent[src]
pub fn partial_cmp(&self, other: &SynchronizeEvent) -> Option<Ordering>[src]
pub fn lt(&self, other: &SynchronizeEvent) -> bool[src]
pub fn le(&self, other: &SynchronizeEvent) -> bool[src]
pub fn gt(&self, other: &SynchronizeEvent) -> bool[src]
pub fn ge(&self, other: &SynchronizeEvent) -> bool[src]
impl StructuralEq for SynchronizeEvent[src]
impl StructuralPartialEq for SynchronizeEvent[src]
impl<'a> TryFrom<&'a InputEvent> for &'a SynchronizeEvent[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 SynchronizeEvent[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 SynchronizeEvent[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 SynchronizeEvent
impl Send for SynchronizeEvent
impl Sync for SynchronizeEvent
impl Unpin for SynchronizeEvent
impl UnwindSafe for SynchronizeEvent
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>,