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_SYNEV_KEYEV_RELEV_ABSEV_MSCEV_SWEV_LEDEV_SNDEV_REPEV_FFEV_PWREV_FF_STATUSEV_MAX
Methods
impl EventType[src]
impl EventTypeⓘImportant traits for EventTypeIteratorpub fn iter(&self) -> EventTypeIterator[src]
ⓘImportant traits for EventTypeIterator
pub fn iter(&self) -> EventTypeIteratorpub fn from_str(name: &str) -> Option<EventType>[src]
pub fn from_str(name: &str) -> Option<EventType>The given type constant for the passed name or Errno if not found.
pub fn get_max(ev_type: &EventType) -> Option<i32>[src]
pub fn get_max(ev_type: &EventType) -> Option<i32>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]
impl Clone for EventTypefn clone(&self) -> EventType[src]
fn clone(&self) -> EventTypeReturns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)1.0.0[src]
fn clone_from(&mut self, source: &Self)1.0.0
[src]Performs copy-assignment from source. Read more
impl Debug for EventType[src]
impl Debug for EventTypefn fmt(&self, f: &mut Formatter) -> Result[src]
fn fmt(&self, f: &mut Formatter) -> ResultFormats the value using the given formatter. Read more
impl PartialEq for EventType[src]
impl PartialEq for EventTypefn eq(&self, other: &EventType) -> bool[src]
fn eq(&self, other: &EventType) -> boolThis method tests for self and other values to be equal, and is used by ==. Read more
fn ne(&self, other: &Rhs) -> bool1.0.0[src]
fn ne(&self, other: &Rhs) -> bool1.0.0
[src]This method tests for !=.
impl Display for EventType[src]
impl Display for EventType