pub struct DeviceEvent<'a> {
pub event_type: EventType,
pub id: i32,
pub hw_code: i32,
pub modifiers: i32,
pub timestamp: i32,
pub event_string: &'a str,
pub is_text: bool,
}
Fields§
§event_type: EventType
§id: i32
§hw_code: i32
§modifiers: i32
§timestamp: i32
§event_string: &'a str
§is_text: bool
Trait Implementations§
source§impl<'a> Clone for DeviceEvent<'a>
impl<'a> Clone for DeviceEvent<'a>
source§fn clone(&self) -> DeviceEvent<'a>
fn clone(&self) -> DeviceEvent<'a>
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl<'a> Debug for DeviceEvent<'a>
impl<'a> Debug for DeviceEvent<'a>
source§impl<'de: 'a, 'a> Deserialize<'de> for DeviceEvent<'a>
impl<'de: 'a, 'a> Deserialize<'de> for DeviceEvent<'a>
source§fn 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
source§impl<'a> PartialEq<DeviceEvent<'a>> for DeviceEvent<'a>
impl<'a> PartialEq<DeviceEvent<'a>> for DeviceEvent<'a>
source§fn eq(&self, other: &DeviceEvent<'a>) -> bool
fn eq(&self, other: &DeviceEvent<'a>) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl<'a> Serialize for DeviceEvent<'a>
impl<'a> Serialize for DeviceEvent<'a>
source§impl<'a> Type for DeviceEvent<'a>
impl<'a> Type for DeviceEvent<'a>
impl<'a> Copy for DeviceEvent<'a>
impl<'a> Eq for DeviceEvent<'a>
impl<'a> StructuralEq for DeviceEvent<'a>
impl<'a> StructuralPartialEq for DeviceEvent<'a>
Auto Trait Implementations§
impl<'a> RefUnwindSafe for DeviceEvent<'a>
impl<'a> Send for DeviceEvent<'a>
impl<'a> Sync for DeviceEvent<'a>
impl<'a> Unpin for DeviceEvent<'a>
impl<'a> UnwindSafe for DeviceEvent<'a>
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<'de, T> DynamicDeserialize<'de> for Twhere
T: Type + Deserialize<'de> + ?Sized,
impl<'de, T> DynamicDeserialize<'de> for Twhere T: Type + Deserialize<'de> + ?Sized,
§type Deserializer = PhantomData<T>
type Deserializer = PhantomData<T>
A DeserializeSeed implementation for this type.
§impl<T> DynamicType for Twhere
T: Type + ?Sized,
impl<T> DynamicType for Twhere T: Type + ?Sized,
§fn dynamic_signature(&self) -> Signature<'_>
fn dynamic_signature(&self) -> Signature<'_>
Get the signature for the implementing type. Read more