[][src]Enum input_linux::EventMut

pub enum EventMut<'a> {
    Synchronize(&'a mut SynchronizeEvent),
    Key(&'a mut KeyEvent),
    Relative(&'a mut RelativeEvent),
    Absolute(&'a mut AbsoluteEvent),
    Switch(&'a mut SwitchEvent),
    Misc(&'a mut MiscEvent),
    Led(&'a mut LedEvent),
    Autorepeat(&'a mut AutorepeatEvent),
    Sound(&'a mut SoundEvent),
    UInput(&'a mut UInputEvent),
    Unknown(&'a mut InputEvent),
}

A mutable reference to an input event.

Variants

Synchronize(&'a mut SynchronizeEvent)
Key(&'a mut KeyEvent)
Relative(&'a mut RelativeEvent)
Absolute(&'a mut AbsoluteEvent)
Switch(&'a mut SwitchEvent)
Misc(&'a mut MiscEvent)
Led(&'a mut LedEvent)
Autorepeat(&'a mut AutorepeatEvent)
Sound(&'a mut SoundEvent)
UInput(&'a mut UInputEvent)
Unknown(&'a mut InputEvent)

Unknown event type.

Implementations

impl<'a> EventMut<'a>[src]

pub fn new(event: &'a mut InputEvent) -> Result<Self, RangeError>[src]

Wraps the generic InputEvent into a mutable event.

Trait Implementations

impl<'a> AsRef<InputEvent> for EventMut<'a>[src]

impl<'a> Debug for EventMut<'a>[src]

impl<'a> Eq for EventMut<'a>[src]

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

impl<'a> From<&'a mut AbsoluteEvent> for EventMut<'a>[src]

impl<'a> From<&'a mut AutorepeatEvent> for EventMut<'a>[src]

impl<'a> From<&'a mut Event> for EventMut<'a>[src]

impl<'a> From<&'a mut KeyEvent> for EventMut<'a>[src]

impl<'a> From<&'a mut LedEvent> for EventMut<'a>[src]

impl<'a> From<&'a mut MiscEvent> for EventMut<'a>[src]

impl<'a> From<&'a mut RelativeEvent> for EventMut<'a>[src]

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

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

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

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

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

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

impl<'a> StructuralEq for EventMut<'a>[src]

impl<'a> StructuralPartialEq for EventMut<'a>[src]

Auto Trait Implementations

impl<'a> RefUnwindSafe for EventMut<'a>

impl<'a> Send for EventMut<'a>

impl<'a> Sync for EventMut<'a>

impl<'a> Unpin for EventMut<'a>

impl<'a> !UnwindSafe for EventMut<'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, 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.