pub struct MouseSourceV2Proxy { /* private fields */ }Implementations§
Source§impl MouseSourceV2Proxy
impl MouseSourceV2Proxy
Sourcepub fn new(channel: AsyncChannel) -> Self
pub fn new(channel: AsyncChannel) -> Self
Create a new Proxy for fuchsia.ui.pointer/MouseSourceV2.
Sourcepub fn take_event_stream(&self) -> MouseSourceV2EventStream
pub fn take_event_stream(&self) -> MouseSourceV2EventStream
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 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 Clone for MouseSourceV2Proxy
impl Clone for MouseSourceV2Proxy
Source§fn clone(&self) -> MouseSourceV2Proxy
fn clone(&self) -> MouseSourceV2Proxy
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for MouseSourceV2Proxy
impl Debug for MouseSourceV2Proxy
Source§impl Proxy for MouseSourceV2Proxy
impl Proxy for MouseSourceV2Proxy
Source§type Protocol = MouseSourceV2Marker
type Protocol = MouseSourceV2Marker
Proxy controls.