pub struct DeviceWatcherProxy { /* private fields */ }
Implementations§
source§impl DeviceWatcherProxy
impl DeviceWatcherProxy
sourcepub fn take_event_stream(&self) -> DeviceWatcherEventStream
pub fn take_event_stream(&self) -> DeviceWatcherEventStream
Get a Stream of events from the remote end of the DeviceWatcher protocol
Panics
Panics if the event stream was already taken.
sourcepub fn next_device(&self) -> QueryResponseFut<DeviceWatcherNextDeviceResult>
pub fn next_device(&self) -> QueryResponseFut<DeviceWatcherNextDeviceResult>
A Hanging-Get API that returns the next device. This will not return until there is a new device available. Call this repeatedly to get all devices. If there is already an outstanding request then calling this again will return ZX_ERR_ALREADY_BOUND.
Trait Implementations§
source§impl Clone for DeviceWatcherProxy
impl Clone for DeviceWatcherProxy
source§fn clone(&self) -> DeviceWatcherProxy
fn clone(&self) -> DeviceWatcherProxy
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for DeviceWatcherProxy
impl Debug for DeviceWatcherProxy
source§impl DeviceWatcherProxyInterface for DeviceWatcherProxy
impl DeviceWatcherProxyInterface for DeviceWatcherProxy
type NextDeviceResponseFut = QueryResponseFut<Result<Channel, i32>>
fn next_device(&self) -> Self::NextDeviceResponseFut
source§impl Proxy for DeviceWatcherProxy
impl Proxy for DeviceWatcherProxy
§type Protocol = DeviceWatcherMarker
type Protocol = DeviceWatcherMarker
The protocol which this
Proxy
controls.source§fn from_channel(inner: AsyncChannel) -> Self
fn from_channel(inner: AsyncChannel) -> Self
Create a proxy over the given channel.
source§fn into_channel(self) -> Result<AsyncChannel, Self>
fn into_channel(self) -> Result<AsyncChannel, Self>
Attempt to convert the proxy back into a channel. Read more
source§fn as_channel(&self) -> &AsyncChannel
fn as_channel(&self) -> &AsyncChannel
Get a reference to the proxy’s underlying channel. Read more