Struct evdev_rs::InputEvent [−][src]
pub struct InputEvent {
pub time: TimeVal,
pub event_type: EventType,
pub event_code: EventCode,
pub value: i32,
}The event structure itself
Fields
time: TimeVal
The time at which event occured
event_type: EventType
event_code: EventCode
value: i32
Methods
impl InputEvent[src]
impl InputEventpub fn is_type(&self, ev_type: &EventType) -> bool[src]
pub fn is_type(&self, ev_type: &EventType) -> boolpub fn is_code(&self, code: &EventCode) -> bool[src]
pub fn is_code(&self, code: &EventCode) -> boolTrait Implementations
impl Clone for InputEvent[src]
impl Clone for InputEventfn clone(&self) -> InputEvent[src]
fn clone(&self) -> InputEventReturns 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 InputEvent[src]
impl Debug for InputEventfn 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 InputEvent[src]
impl PartialEq for InputEventfn eq(&self, other: &InputEvent) -> bool[src]
fn eq(&self, other: &InputEvent) -> boolThis method tests for self and other values to be equal, and is used by ==. Read more
fn ne(&self, other: &InputEvent) -> bool[src]
fn ne(&self, other: &InputEvent) -> boolThis method tests for !=.
Auto Trait Implementations
impl Send for InputEvent
impl Send for InputEventimpl Sync for InputEvent
impl Sync for InputEvent