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<D: ResourceDialect> Decode<TouchEvent, D> for TouchEvent
impl<D: ResourceDialect> Decode<TouchEvent, D> 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<D: ResourceDialect> Encode<TouchEvent, D> for &TouchEvent
impl<D: ResourceDialect> Encode<TouchEvent, D> for &TouchEvent
Source§impl PartialEq for TouchEvent
impl PartialEq for TouchEvent
Source§impl TypeMarker for TouchEvent
impl TypeMarker for TouchEvent
Source§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
Source§type Borrowed<'a> = &'a TouchEvent
type Borrowed<'a> = &'a TouchEvent
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 Freeze for TouchEvent
impl RefUnwindSafe for TouchEvent
impl Send for TouchEvent
impl Sync for TouchEvent
impl Unpin for TouchEvent
impl UnwindSafe for TouchEvent
Blanket Implementations§
§impl<T> Body for Twhere
T: Persistable,
impl<T> Body for Twhere
T: Persistable,
§type MarkerAtTopLevel = T
type MarkerAtTopLevel = T
The marker type to use when the body is at the top-level.
§type MarkerInResultUnion = T
type MarkerInResultUnion = T
The marker type to use when the body is nested in a result union.
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
)