pub struct InputReport {
pub event_time: Option<i64>,
pub mouse: Option<MouseInputReport>,
pub sensor: Option<SensorInputReport>,
pub touch: Option<TouchInputReport>,
pub keyboard: Option<KeyboardInputReport>,
pub consumer_control: Option<ConsumerControlInputReport>,
pub trace_id: Option<u64>,
pub report_id: Option<u8>,
pub wake_lease: Option<EventPair>,
}Expand description
An InputReport is a single report that is created by an input device.
An InputReport can contain one of many different report types. The report
types are not mutually exclusive. The event_time is the time in
nanoseconds when the report was generated.
Fields§
§event_time: Option<i64>§mouse: Option<MouseInputReport>§sensor: Option<SensorInputReport>§touch: Option<TouchInputReport>§keyboard: Option<KeyboardInputReport>§consumer_control: Option<ConsumerControlInputReport>§trace_id: Option<u64>§report_id: Option<u8>§wake_lease: Option<EventPair>Trait Implementations§
Source§impl Debug for InputReport
impl Debug for InputReport
Source§impl Default for InputReport
impl Default for InputReport
Source§fn default() -> InputReport
fn default() -> InputReport
Returns the “default value” for a type. Read more
Source§impl<___E> Encode<InputReport<'static>, ___E> for InputReportwhere
___E: Encoder + ?Sized + HandleEncoder,
impl<___E> Encode<InputReport<'static>, ___E> for InputReportwhere
___E: Encoder + ?Sized + HandleEncoder,
Source§fn encode(
self,
encoder: &mut ___E,
out: &mut MaybeUninit<InputReport<'static>>,
_: (),
) -> Result<(), EncodeError>
fn encode( self, encoder: &mut ___E, out: &mut MaybeUninit<InputReport<'static>>, _: (), ) -> Result<(), EncodeError>
Encodes this value into an encoder and output.
§const COPY_OPTIMIZATION: CopyOptimization<Self, W> = _
const COPY_OPTIMIZATION: CopyOptimization<Self, W> = _
Source§impl<'de> FromWire<InputReport<'de>> for InputReport
impl<'de> FromWire<InputReport<'de>> for InputReport
Source§fn from_wire(wire_: InputReport<'de>) -> Self
fn from_wire(wire_: InputReport<'de>) -> Self
Converts the given owned value to this type.
§const COPY_OPTIMIZATION: CopyOptimization<W, Self> = _
const COPY_OPTIMIZATION: CopyOptimization<W, Self> = _
Source§impl PartialEq for InputReport
impl PartialEq for InputReport
impl StructuralPartialEq for InputReport
Auto Trait Implementations§
impl Freeze for InputReport
impl RefUnwindSafe for InputReport
impl Send for InputReport
impl Sync for InputReport
impl Unpin for InputReport
impl UnsafeUnpin for InputReport
impl UnwindSafe for InputReport
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<T, W> FromWireOption<Box<'_, W>> for Twhere
T: FromWire<W>,
impl<T, W> FromWireOption<Box<'_, W>> for Twhere
T: FromWire<W>,
§fn from_wire_option(wire: Box<'_, W>) -> Option<T>
fn from_wire_option(wire: Box<'_, W>) -> Option<T>
Converts the given owned value to an option of this type.
§impl<T> InstanceFromServiceTransport<T> for T
impl<T> InstanceFromServiceTransport<T> for T
§fn from_service_transport(handle: T) -> T
fn from_service_transport(handle: T) -> T
Converts the given service transport handle of type
T to [Self]