pub struct InputReport {
pub event_time: u64,
pub keyboard: Option<Box<KeyboardReport>>,
pub media_buttons: Option<Box<MediaButtonsReport>>,
pub mouse: Option<Box<MouseReport>>,
pub stylus: Option<Box<StylusReport>>,
pub touchscreen: Option<Box<TouchscreenReport>>,
pub sensor: Option<Box<SensorReport>>,
pub trace_id: u64,
}Fields§
§event_time: u64§keyboard: Option<Box<KeyboardReport>>§mouse: Option<Box<MouseReport>>§stylus: Option<Box<StylusReport>>§touchscreen: Option<Box<TouchscreenReport>>§sensor: Option<Box<SensorReport>>§trace_id: u64Trait Implementations§
Source§impl Clone for InputReport
impl Clone for InputReport
Source§fn clone(&self) -> InputReport
fn clone(&self) -> InputReport
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 InputReport
impl Debug for InputReport
Source§impl<___E> Encode<InputReport<'static>, ___E> for InputReportwhere
___E: InternalHandleEncoder + Encoder + ?Sized,
impl<___E> Encode<InputReport<'static>, ___E> for InputReportwhere
___E: InternalHandleEncoder + Encoder + ?Sized,
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<'a, ___E> Encode<InputReport<'static>, ___E> for &'a InputReportwhere
___E: InternalHandleEncoder + Encoder + ?Sized,
impl<'a, ___E> Encode<InputReport<'static>, ___E> for &'a InputReportwhere
___E: InternalHandleEncoder + Encoder + ?Sized,
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<___E> EncodeOption<Box<'static, InputReport<'static>>, ___E> for InputReport
impl<___E> EncodeOption<Box<'static, InputReport<'static>>, ___E> for InputReport
Source§fn encode_option(
this: Option<InputReport>,
encoder: &mut ___E,
out: &mut MaybeUninit<Box<'static, InputReport<'static>>>,
_: (),
) -> Result<(), EncodeError>
fn encode_option( this: Option<InputReport>, encoder: &mut ___E, out: &mut MaybeUninit<Box<'static, InputReport<'static>>>, _: (), ) -> Result<(), EncodeError>
Encodes this optional value into an encoder and output.
Source§impl<'a, ___E> EncodeOption<Box<'static, InputReport<'static>>, ___E> for &'a InputReport
impl<'a, ___E> EncodeOption<Box<'static, InputReport<'static>>, ___E> for &'a InputReport
Source§fn encode_option(
this: Option<&'a InputReport>,
encoder: &mut ___E,
out: &mut MaybeUninit<Box<'static, InputReport<'static>>>,
_: (),
) -> Result<(), EncodeError>
fn encode_option( this: Option<&'a InputReport>, encoder: &mut ___E, out: &mut MaybeUninit<Box<'static, InputReport<'static>>>, _: (), ) -> Result<(), EncodeError>
Encodes this optional value into an encoder and output.
impl Eq for InputReport
Source§impl<'de> FromWire<InputReport<'de>> for InputReport
impl<'de> FromWire<InputReport<'de>> for InputReport
Source§fn from_wire(wire: InputReport<'de>) -> InputReport
fn from_wire(wire: InputReport<'de>) -> InputReport
Converts the given owned value to this type.
§const COPY_OPTIMIZATION: CopyOptimization<W, Self> = _
const COPY_OPTIMIZATION: CopyOptimization<W, Self> = _
Source§impl<'de> FromWireRef<InputReport<'de>> for InputReport
impl<'de> FromWireRef<InputReport<'de>> for InputReport
Source§fn from_wire_ref(wire: &InputReport<'de>) -> InputReport
fn from_wire_ref(wire: &InputReport<'de>) -> InputReport
Converts the given reference to this type.
Source§impl Hash for InputReport
impl Hash for InputReport
Source§impl Ord for InputReport
impl Ord for InputReport
Source§fn cmp(&self, other: &InputReport) -> Ordering
fn cmp(&self, other: &InputReport) -> Ordering
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialEq for InputReport
impl PartialEq for InputReport
Source§impl PartialOrd for InputReport
impl PartialOrd 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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§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, W> FromWireOptionRef<Box<'_, W>> for Twhere
T: FromWireRef<W>,
impl<T, W> FromWireOptionRef<Box<'_, W>> for Twhere
T: FromWireRef<W>,
§fn from_wire_option_ref(wire: &Box<'_, W>) -> Option<T>
fn from_wire_option_ref(wire: &Box<'_, W>) -> Option<T>
Converts the given reference 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]