pub struct TouchSourceV2SynchronousProxy { /* private fields */ }Implementations§
Source§impl TouchSourceV2SynchronousProxy
impl TouchSourceV2SynchronousProxy
pub fn new(channel: Channel) -> Self
pub fn into_channel(self) -> Channel
Sourcepub fn wait_for_event(
&self,
deadline: MonotonicInstant,
) -> Result<TouchSourceV2Event, Error>
pub fn wait_for_event( &self, deadline: MonotonicInstant, ) -> Result<TouchSourceV2Event, Error>
Waits until an event arrives and returns it. It is safe for other threads to make concurrent requests while waiting for an event.
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 From<Channel> for TouchSourceV2SynchronousProxy
Available on Fuchsia only.
impl From<Channel> for TouchSourceV2SynchronousProxy
Source§impl From<TouchSourceV2SynchronousProxy> for NullableHandle
Available on Fuchsia only.
impl From<TouchSourceV2SynchronousProxy> for NullableHandle
Source§fn from(value: TouchSourceV2SynchronousProxy) -> Self
fn from(value: TouchSourceV2SynchronousProxy) -> Self
Source§impl FromClient for TouchSourceV2SynchronousProxy
Available on Fuchsia only.
impl FromClient for TouchSourceV2SynchronousProxy
Source§type Protocol = TouchSourceV2Marker
type Protocol = TouchSourceV2Marker
Source§fn from_client(value: ClientEnd<TouchSourceV2Marker>) -> Self
fn from_client(value: ClientEnd<TouchSourceV2Marker>) -> Self
Source§impl SynchronousProxy for TouchSourceV2SynchronousProxy
Available on Fuchsia only.
impl SynchronousProxy for TouchSourceV2SynchronousProxy
Source§type Proxy = TouchSourceV2Proxy
type Proxy = TouchSourceV2Proxy
Source§type Protocol = TouchSourceV2Marker
type Protocol = TouchSourceV2Marker
Proxy controls.