pub struct TouchSourceV2Proxy { /* private fields */ }Implementations§
Source§impl TouchSourceV2Proxy
impl TouchSourceV2Proxy
Sourcepub fn new(channel: AsyncChannel) -> Self
pub fn new(channel: AsyncChannel) -> Self
Create a new Proxy for fuchsia.ui.pointer/TouchSourceV2.
Sourcepub fn take_event_stream(&self) -> TouchSourceV2EventStream
pub fn take_event_stream(&self) -> TouchSourceV2EventStream
Get a Stream of events from the remote end of the protocol.
§Panics
Panics if the event stream was already taken.
Sourcepub fn acknowledge_events(
&self,
last_acknowledged_event_stamp: u64,
) -> Result<(), Error>
pub fn acknowledge_events( &self, last_acknowledged_event_stamp: u64, ) -> Result<(), Error>
Acknowledges receipt of events up to last_acknowledged_event_stamp.
This grants the server “credits” to send more events. All events sent
with a last_event_stamp less than or equal to
last_acknowledged_event_stamp are considered acknowledged.
The server (Scenic) will throttle event delivery when unacknowledged
events in flight reach TOUCH_SOURCE_V2_MAX_UNACKNOWLEDGED_EVENTS (or a
product-configured maximum). Clients should send acknowledgments
periodically (e.g. before reaching the limit, such as within 20
remaining credits) to avoid being throttled.
last_acknowledged_event_stamp must be strictly increasing.
Non-compliance results in channel closure.
Trait Implementations§
Source§impl Clone for TouchSourceV2Proxy
impl Clone for TouchSourceV2Proxy
Source§impl Debug for TouchSourceV2Proxy
impl Debug for TouchSourceV2Proxy
Source§impl Proxy for TouchSourceV2Proxy
impl Proxy for TouchSourceV2Proxy
Source§type Protocol = TouchSourceV2Marker
type Protocol = TouchSourceV2Marker
Proxy controls.