Struct evdev_rs::InputEvent
source · [−]Expand description
The event structure itself
Fields
time: TimeVal
The time at which event occured
event_code: EventCode
value: i32
Implementations
sourceimpl InputEvent
impl InputEvent
pub const fn new(timeval: &TimeVal, code: &EventCode, value: i32) -> InputEvent
pub fn event_type(&self) -> Option<EventType>
pub fn from_raw(event: &input_event) -> InputEvent
pub fn as_raw(&self) -> input_event
pub fn is_type(&self, ev_type: &EventType) -> bool
pub fn is_code(&self, code: &EventCode) -> bool
Trait Implementations
sourceimpl Clone for InputEvent
impl Clone for InputEvent
sourcefn clone(&self) -> InputEvent
fn clone(&self) -> InputEvent
Returns a copy of the value. Read more
1.0.0 · sourceconst fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl Debug for InputEvent
impl Debug for InputEvent
sourceimpl<'de> Deserialize<'de> for InputEvent
impl<'de> Deserialize<'de> for InputEvent
sourcefn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
sourceimpl Hash for InputEvent
impl Hash for InputEvent
sourceimpl PartialEq<InputEvent> for InputEvent
impl PartialEq<InputEvent> for InputEvent
sourcefn eq(&self, other: &InputEvent) -> bool
fn eq(&self, other: &InputEvent) -> bool
sourceimpl Serialize for InputEvent
impl Serialize for InputEvent
impl Eq for InputEvent
impl StructuralEq for InputEvent
impl StructuralPartialEq for InputEvent
Auto Trait Implementations
impl RefUnwindSafe for InputEvent
impl Send for InputEvent
impl Sync for InputEvent
impl Unpin for InputEvent
impl UnwindSafe for InputEvent
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more