Enum evdev_rs::enums::EventCode
[−]
[src]
pub enum EventCode { EV_SYN(EV_SYN), EV_KEY(EV_KEY), EV_REL(EV_REL), EV_ABS(EV_ABS), EV_MSC(EV_MSC), EV_SW(EV_SW), EV_LED(EV_LED), EV_SND(EV_SND), EV_REP(EV_REP), EV_FF(EV_FF), EV_PWR, EV_FF_STATUS(EV_FF), EV_MAX, }
Variants
EV_SYN(EV_SYN)
EV_KEY(EV_KEY)
EV_REL(EV_REL)
EV_ABS(EV_ABS)
EV_MSC(EV_MSC)
EV_SW(EV_SW)
EV_LED(EV_LED)
EV_SND(EV_SND)
EV_REP(EV_REP)
EV_FF(EV_FF)
EV_PWR
EV_FF_STATUS(EV_FF)
EV_MAX
Methods
impl EventCode
[src]
fn iter(&self) -> EventCodeIterator
[src]
fn from_str(ev_type: &EventType, name: &str) -> Option<EventCode>
[src]
Look up an event code by its type and name. Event codes start with a fixed prefix followed by their name (eg., "ABS_X"). The prefix must be included in the name. It returns the constant assigned to the event code or Errno if not found.
Trait Implementations
impl Clone for EventCode
[src]
fn clone(&self) -> EventCode
[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 EventCode
[src]
fn eq(&self, __arg_0: &EventCode) -> bool
[src]
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &EventCode) -> bool
[src]
This method tests for !=
.