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 for DeviceEvent<'a>
impl<'a> PartialEq for DeviceEvent<'a>
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> StructuralPartialEq for DeviceEvent<'a>
Auto Trait Implementations§
impl<'a> Freeze for DeviceEvent<'a>
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)source§impl<T> CloneToUninit for Twhere
T: Copy,
impl<T> CloneToUninit for Twhere
T: Copy,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)source§impl<'de, T> DynamicDeserialize<'de> for T
impl<'de, T> DynamicDeserialize<'de> for T
§type Deserializer = PhantomData<T>
type Deserializer = PhantomData<T>
A DeserializeSeed implementation for this type.
source§fn deserializer_for_signature<S>(
signature: S,
) -> Result<<T as DynamicDeserialize<'de>>::Deserializer, Error>
fn deserializer_for_signature<S>( signature: S, ) -> Result<<T as DynamicDeserialize<'de>>::Deserializer, Error>
Get a deserializer compatible with this signature.
source§impl<T> DynamicType for T
impl<T> DynamicType for T
source§fn dynamic_signature(&self) -> Signature<'_>
fn dynamic_signature(&self) -> Signature<'_>
Get the signature for the implementing type. Read more