pub struct WatcherProxy { /* private fields */ }
Implementations§
Source§impl WatcherProxy
impl WatcherProxy
Sourcepub fn new(channel: AsyncChannel) -> Self
pub fn new(channel: AsyncChannel) -> Self
Create a new Proxy for fuchsia.net.interfaces/Watcher.
Sourcepub fn take_event_stream(&self) -> WatcherEventStream
pub fn take_event_stream(&self) -> WatcherEventStream
Get a Stream of events from the remote end of the protocol.
§Panics
Panics if the event stream was already taken.
Sourcepub fn watch(&self) -> QueryResponseFut<Event, DefaultFuchsiaResourceDialect>
pub fn watch(&self) -> QueryResponseFut<Event, DefaultFuchsiaResourceDialect>
Hanging get for an interface addition/deletion change.
Clients should only have one call of this method at a time; a second call to this method while a call is already pending will cause the server end of the protocol to be closed.
If there are N interfaces present at the time the server end of the
protocol is initialized, then the first N invocations of this method
will return [Event.existing
] followed by a single [Event.idle
]
indicating that all existing interfaces have been sent. Subsequent calls
will immediately return if there is a change to be reported, or block
until a change occurs.
The server may choose to coalesce property change events, e.g. when multiple independent property changes occur. As a result, clients cannot assume that the order in which they observe the interface changes is the order in which the changes occurred.
- response
event
the interface change event.
Trait Implementations§
Source§impl Clone for WatcherProxy
impl Clone for WatcherProxy
Source§fn clone(&self) -> WatcherProxy
fn clone(&self) -> WatcherProxy
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for WatcherProxy
impl Debug for WatcherProxy
Source§impl Proxy for WatcherProxy
impl Proxy for WatcherProxy
Source§type Protocol = WatcherMarker
type Protocol = WatcherMarker
Proxy
controls.