pub struct InputReport {
pub event_time: Option<i64>,
pub mouse: Option<MouseInputReport>,
pub trace_id: Option<u64>,
pub sensor: Option<SensorInputReport>,
pub touch: Option<TouchInputReport>,
pub keyboard: Option<KeyboardInputReport>,
pub consumer_control: Option<ConsumerControlInputReport>,
pub report_id: Option<u8>,
pub wake_lease: Option<EventPair>,
/* private fields */
}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>The monotonic time when the event was generated.
Required.
mouse: Option<MouseInputReport>Optional. Present iff the device reports mouse input.
trace_id: Option<u64>Unique ID to connect trace async begin/end events.
Optional.
sensor: Option<SensorInputReport>Optional. Present iff the device reports sensor input.
touch: Option<TouchInputReport>Optional. Present iff the device reports touch input.
keyboard: Option<KeyboardInputReport>Optional. Present iff the device reports keyboard input.
consumer_control: Option<ConsumerControlInputReport>Optional. Present iff the device reports consumer control input.
report_id: Option<u8>A device may have multiple input descriptors of the same type. This field specifies which descriptor this InputReport corresponds to. Omitted if the device has no more than one descriptor for each type.
Optional.
wake_lease: Option<EventPair>Optional wake lease for power baton passing.
Trait Implementations§
Source§impl Debug for InputReport
impl Debug for InputReport
Source§impl Decode<InputReport, DefaultFuchsiaResourceDialect> for InputReport
impl Decode<InputReport, DefaultFuchsiaResourceDialect> for InputReport
Source§impl Default for InputReport
impl Default for InputReport
Source§fn default() -> InputReport
fn default() -> InputReport
Source§impl Encode<InputReport, DefaultFuchsiaResourceDialect> for &mut InputReport
impl Encode<InputReport, DefaultFuchsiaResourceDialect> for &mut InputReport
Source§impl PartialEq for InputReport
impl PartialEq for InputReport
Source§fn eq(&self, other: &InputReport) -> bool
fn eq(&self, other: &InputReport) -> bool
self and other values to be equal, and is used by ==.Source§impl ResourceTypeMarker for InputReport
impl ResourceTypeMarker for InputReport
Source§type Borrowed<'a> = &'a mut InputReport
type Borrowed<'a> = &'a mut InputReport
Encode<Self>
type cheaply obtainable from &mut Self::Owned. There are three cases: Read moreSource§fn take_or_borrow<'a>(
value: &'a mut <Self as TypeMarker>::Owned,
) -> Self::Borrowed<'a>
fn take_or_borrow<'a>( value: &'a mut <Self as TypeMarker>::Owned, ) -> Self::Borrowed<'a>
&mut Self::Owned to Self::Borrowed. For
HandleBased types this is “take” (it returns an owned handle and
replaces value with Handle::invalid), and for all other types it is
“borrow” (just converts from one reference to another).Source§impl TypeMarker for InputReport
impl TypeMarker for InputReport
Source§type Owned = InputReport
type Owned = InputReport
Source§fn inline_align(_context: Context) -> usize
fn inline_align(_context: Context) -> usize
Source§fn inline_size(_context: Context) -> usize
fn inline_size(_context: Context) -> usize
inline_align.Source§fn encode_is_copy() -> bool
fn encode_is_copy() -> bool
Self::Owned matches the FIDL wire
format and encoding requires no validation. When true, we can optimize
encoding arrays and vectors of Self::Owned to a single memcpy. Read moreSource§fn decode_is_copy() -> bool
fn decode_is_copy() -> bool
Self::Owned matches the FIDL wire
format and decoding requires no validation. When true, we can optimize
decoding arrays and vectors of Self::Owned to a single memcpy.