Enum evdev_rs::enums::EventType
[−]
[src]
pub enum EventType { EV_SYN, EV_KEY, EV_REL, EV_ABS, EV_MSC, EV_SW, EV_LED, EV_SND, EV_REP, EV_FF, EV_PWR, EV_FF_STATUS, EV_MAX, }
Variants
EV_SYN
EV_KEY
EV_REL
EV_ABS
EV_MSC
EV_SW
EV_LED
EV_SND
EV_REP
EV_FF
EV_PWR
EV_FF_STATUS
EV_MAX
Methods
impl EventType
[src]
fn iter(&self) -> EventTypeIterator
[src]
fn from_str(name: &str) -> Option<EventType>
[src]
The given type constant for the passed name or Errno if not found.
fn get_max(ev_type: &EventType) -> Option<i32>
[src]
The max value defined for the given event type, e.g. ABS_MAX for a type of EV_ABS, or Errno for an invalid type.
Trait Implementations
impl Clone for EventType
[src]
fn clone(&self) -> EventType
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl PartialEq for EventType
[src]
fn eq(&self, __arg_0: &EventType) -> bool
[src]
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
This method tests for !=
.