Enum input_linux::Event [−][src]
pub enum Event { Synchronize(SynchronizeEvent), Key(KeyEvent), Relative(RelativeEvent), Absolute(AbsoluteEvent), Switch(SwitchEvent), Misc(MiscEvent), Led(LedEvent), Autorepeat(AutorepeatEvent), Sound(SoundEvent), UInput(UInputEvent), Unknown(InputEvent), }
Expand description
An owned and typed input event.
Variants
Tuple Fields of Synchronize
Tuple Fields of Key
0: KeyEvent
Tuple Fields of Relative
Tuple Fields of Absolute
Tuple Fields of Switch
0: SwitchEvent
Tuple Fields of Misc
0: MiscEvent
Tuple Fields of Led
0: LedEvent
Tuple Fields of Autorepeat
Tuple Fields of Sound
0: SoundEvent
Tuple Fields of UInput
0: UInputEvent
Unknown event type.
Tuple Fields of Unknown
0: InputEvent
Implementations
Converts a generic InputEvent
to a typed event.
Trait Implementations
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
This method returns an ordering between self
and other
values if one exists. Read more
This method tests less than (for self
and other
) and is used by the <
operator. Read more
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
This method tests greater than (for self
and other
) and is used by the >
operator. Read more
Auto Trait Implementations
impl RefUnwindSafe for Event
impl UnwindSafe for Event
Blanket Implementations
Mutably borrows from an owned value. Read more