pub struct MouseSourceV2SynchronousProxy { /* private fields */ }Implementations§
Source§impl MouseSourceV2SynchronousProxy
impl MouseSourceV2SynchronousProxy
pub fn new(channel: Channel) -> Self
pub fn into_channel(self) -> Channel
Sourcepub fn wait_for_event(
&self,
deadline: MonotonicInstant,
) -> Result<MouseSourceV2Event, Error>
pub fn wait_for_event( &self, deadline: MonotonicInstant, ) -> Result<MouseSourceV2Event, 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 MOUSE_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 MouseSourceV2SynchronousProxy
Available on Fuchsia only.
impl From<Channel> for MouseSourceV2SynchronousProxy
Source§impl From<MouseSourceV2SynchronousProxy> for NullableHandle
Available on Fuchsia only.
impl From<MouseSourceV2SynchronousProxy> for NullableHandle
Source§fn from(value: MouseSourceV2SynchronousProxy) -> Self
fn from(value: MouseSourceV2SynchronousProxy) -> Self
Source§impl FromClient for MouseSourceV2SynchronousProxy
Available on Fuchsia only.
impl FromClient for MouseSourceV2SynchronousProxy
Source§type Protocol = MouseSourceV2Marker
type Protocol = MouseSourceV2Marker
Source§fn from_client(value: ClientEnd<MouseSourceV2Marker>) -> Self
fn from_client(value: ClientEnd<MouseSourceV2Marker>) -> Self
Source§impl SynchronousProxy for MouseSourceV2SynchronousProxy
Available on Fuchsia only.
impl SynchronousProxy for MouseSourceV2SynchronousProxy
Source§type Proxy = MouseSourceV2Proxy
type Proxy = MouseSourceV2Proxy
Source§type Protocol = MouseSourceV2Marker
type Protocol = MouseSourceV2Marker
Proxy controls.