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 protocol.
§Panics
Panics if the event stream was already taken.
Sourcepub fn watch_devices(
&self,
) -> QueryResponseFut<(Vec<String>, Vec<String>), DefaultFuchsiaResourceDialect>
pub fn watch_devices( &self, ) -> QueryResponseFut<(Vec<String>, Vec<String>), DefaultFuchsiaResourceDialect>
Observes when devices are added or removed.
The first call to this method returns immediately with a
DeviceChanges
struct containing only items in the added
field with
the names of all of the current devices. Subsequent calls
will block until a device has been added or removed, at which
point it will return with the added
and/or removed
fields
filled out accordingly. The changes are reported since the
time that the method returned.
If both the added
and removed
fields have names in the returned
table, then the removed
field MUST be processed BEFORE added
field.
If a device was added and then removed in-between calls to this
method, the device will be absent from both the added
and removed
lists.
If the same device name is listed on both the added
and removed
fields, then the client should assume that the original device was
removed and a new device instance started in its place. However, while
the client should be able to handle this condition, it should not depend
on the server will always have this behavior.
Trait Implementations§
Source§impl Clone for DeviceWatcherProxy
impl Clone for DeviceWatcherProxy
Source§fn clone(&self) -> DeviceWatcherProxy
fn clone(&self) -> DeviceWatcherProxy
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for DeviceWatcherProxy
impl Debug for DeviceWatcherProxy
Source§impl DeviceWatcherProxyInterface for DeviceWatcherProxy
impl DeviceWatcherProxyInterface for DeviceWatcherProxy
type WatchDevicesResponseFut = QueryResponseFut<(Vec<String>, Vec<String>)>
fn watch_devices(&self) -> Self::WatchDevicesResponseFut
Source§impl Proxy for DeviceWatcherProxy
impl Proxy for DeviceWatcherProxy
Source§type Protocol = DeviceWatcherMarker
type Protocol = DeviceWatcherMarker
Proxy
controls.Source§fn from_channel(inner: AsyncChannel) -> Self
fn from_channel(inner: AsyncChannel) -> Self
Source§fn into_channel(self) -> Result<AsyncChannel, Self>
fn into_channel(self) -> Result<AsyncChannel, Self>
Source§fn as_channel(&self) -> &AsyncChannel
fn as_channel(&self) -> &AsyncChannel
§fn into_client_end(self) -> Result<ClientEnd<Self::Protocol>, Self>
fn into_client_end(self) -> Result<ClientEnd<Self::Protocol>, Self>
Auto Trait Implementations§
impl Freeze for DeviceWatcherProxy
impl !RefUnwindSafe for DeviceWatcherProxy
impl Send for DeviceWatcherProxy
impl Sync for DeviceWatcherProxy
impl Unpin for DeviceWatcherProxy
impl !UnwindSafe for DeviceWatcherProxy
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)