Struct fidl_fuchsia_ui_pointer::TouchEvent
source · pub struct TouchEvent {
pub timestamp: Option<i64>,
pub view_parameters: Option<ViewParameters>,
pub device_info: Option<TouchDeviceInfo>,
pub pointer_sample: Option<TouchPointerSample>,
pub interaction_result: Option<TouchInteractionResult>,
pub trace_flow_id: Option<u64>,
/* private fields */
}
Expand description
The self-sufficient, self-consistent collection of pointer-related data, sent from server to client.
Fields§
§timestamp: Option<i64>
The time this event was observed. Required.
view_parameters: Option<ViewParameters>
The parameters of the associated view and viewport, sufficient to correctly interpret the position, orientation, magnitude, and inter-event distance of touch events dispatched to a view.
- It is issued on connection and on change.
device_info: Option<TouchDeviceInfo>
A description of the pointer device, sufficient to correctly interpret the capabilities and usage intent of the device.
- It is issued once per device.
pointer_sample: Option<TouchPointerSample>
A description of each sampled data point in an interaction of touch events.
- It is issued on every sample in the interaction.
interaction_result: Option<TouchInteractionResult>
The result of gesture disambiguation for a interaction of touch events.
- It is issued once per interaction.
trace_flow_id: Option<u64>
An identifier to correlate this event’s send/receive occurrence across component boundaries or abstraction layers.
Trait Implementations§
source§impl Clone for TouchEvent
impl Clone for TouchEvent
source§fn clone(&self) -> TouchEvent
fn clone(&self) -> TouchEvent
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 TouchEvent
impl Debug for TouchEvent
source§impl Decode<TouchEvent> for TouchEvent
impl Decode<TouchEvent> for TouchEvent
source§impl Default for TouchEvent
impl Default for TouchEvent
source§fn default() -> TouchEvent
fn default() -> TouchEvent
Returns the “default value” for a type. Read more
source§impl Encode<TouchEvent> for &TouchEvent
impl Encode<TouchEvent> for &TouchEvent
source§impl PartialEq<TouchEvent> for TouchEvent
impl PartialEq<TouchEvent> for TouchEvent
source§fn eq(&self, other: &TouchEvent) -> bool
fn eq(&self, other: &TouchEvent) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl TypeMarker for TouchEvent
impl TypeMarker for TouchEvent
§type Owned = TouchEvent
type Owned = TouchEvent
The owned Rust type which this FIDL type decodes into.
source§fn inline_align(_context: Context) -> usize
fn inline_align(_context: Context) -> usize
Returns the minimum required alignment of the inline portion of the
encoded object. It must be a (nonzero) power of two.
source§fn inline_size(_context: Context) -> usize
fn inline_size(_context: Context) -> usize
Returns the size of the inline portion of the encoded object, including
padding for alignment. Must be a multiple of
inline_align
.§fn encode_is_copy() -> bool
fn encode_is_copy() -> bool
Returns true if the memory layout of
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 more§fn decode_is_copy() -> bool
fn decode_is_copy() -> bool
Returns true if the memory layout of
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.source§impl ValueTypeMarker for TouchEvent
impl ValueTypeMarker for TouchEvent
§type Borrowed<'a> = &'a <TouchEvent as TypeMarker>::Owned
type Borrowed<'a> = &'a <TouchEvent as TypeMarker>::Owned
The Rust type to use for encoding. This is a particular
Encode<Self>
type cheaply obtainable from &Self::Owned
. There are three cases: Read moreimpl Persistable for TouchEvent
impl StructuralPartialEq for TouchEvent
Auto Trait Implementations§
impl RefUnwindSafe for TouchEvent
impl Send for TouchEvent
impl Sync for TouchEvent
impl Unpin for TouchEvent
impl UnwindSafe for TouchEvent
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