pub struct UnhandledInputEvent {
pub device_event: InputDeviceEvent,
pub device_descriptor: InputDeviceDescriptor,
pub event_time: MonotonicInstant,
pub trace_id: Option<Id>,
}
Expand description
An UnhandledInputEvent
is like an InputEvent
, except that the data represents an
event that has not been handled.
- Event producers must not use this type to carry data for an event that was already handled.
- Event consumers should assume that the event has not been handled.
Fields§
§device_event: InputDeviceEvent
The device_event
contains the device-specific input event information.
device_descriptor: InputDeviceDescriptor
The device_descriptor
contains static information about the device that generated the
input event.
event_time: MonotonicInstant
The time in nanoseconds when the event was first recorded.
trace_id: Option<Id>
Trait Implementations§
Source§impl Clone for UnhandledInputEvent
impl Clone for UnhandledInputEvent
Source§fn clone(&self) -> UnhandledInputEvent
fn clone(&self) -> UnhandledInputEvent
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 Debug for UnhandledInputEvent
impl Debug for UnhandledInputEvent
Source§impl From<UnhandledInputEvent> for InputEvent
impl From<UnhandledInputEvent> for InputEvent
Source§fn from(event: UnhandledInputEvent) -> Self
fn from(event: UnhandledInputEvent) -> Self
Converts to this type from the input type.
Source§impl PartialEq for UnhandledInputEvent
impl PartialEq for UnhandledInputEvent
impl StructuralPartialEq for UnhandledInputEvent
Auto Trait Implementations§
impl Freeze for UnhandledInputEvent
impl !RefUnwindSafe for UnhandledInputEvent
impl Send for UnhandledInputEvent
impl Sync for UnhandledInputEvent
impl Unpin for UnhandledInputEvent
impl !UnwindSafe for UnhandledInputEvent
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§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
)