[][src]Enum input_linux::EventRef

pub enum EventRef<'a> {
    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),
}

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]

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]

impl<'a> From<&'a AutorepeatEvent> for EventRef<'a>[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]

impl<'a> From<&'a SoundEvent> for EventRef<'a>[src]

impl<'a> From<&'a SwitchEvent> for EventRef<'a>[src]

impl<'a> From<&'a SynchronizeEvent> for EventRef<'a>[src]

impl<'a> From<&'a UInputEvent> for EventRef<'a>[src]

impl<'a> From<EventRef<'a>> for &'a InputEvent[src]

impl<'a> Hash for EventRef<'a>[src]

impl<'a> Ord for EventRef<'a>[src]

impl<'a> PartialEq<EventRef<'a>> for EventRef<'a>[src]

impl<'a> PartialOrd<EventRef<'a>> for EventRef<'a>[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]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.