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>,
    pub wake_lease: Option<EventPair>,
    /* private fields */
}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.
wake_lease: Option<EventPair>Optional wake lease for power baton passing.
Trait Implementations§
Source§impl Debug for TouchEvent
 
impl Debug for TouchEvent
Source§impl Decode<TouchEvent, DefaultFuchsiaResourceDialect> for TouchEvent
 
impl Decode<TouchEvent, DefaultFuchsiaResourceDialect> 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, DefaultFuchsiaResourceDialect> for &mut TouchEvent
 
impl Encode<TouchEvent, DefaultFuchsiaResourceDialect> for &mut TouchEvent
Source§impl PartialEq for TouchEvent
 
impl PartialEq for TouchEvent
Source§impl ResourceTypeMarker for TouchEvent
 
impl ResourceTypeMarker for TouchEvent
Source§type Borrowed<'a> = &'a mut TouchEvent
 
type Borrowed<'a> = &'a mut TouchEvent
The Rust type to use for encoding. This is a particular 
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>
Cheaply converts from 
&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 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.Source§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 moreSource§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.impl Standalone<DefaultFuchsiaResourceDialect> 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§
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