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.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>
Source§impl WatcherProxyInterface for WatcherProxy
impl WatcherProxyInterface for WatcherProxy
type WatchResponseFut = QueryResponseFut<Event>
fn watch(&self) -> Self::WatchResponseFut
Auto Trait Implementations§
impl Freeze for WatcherProxy
impl !RefUnwindSafe for WatcherProxy
impl Send for WatcherProxy
impl Sync for WatcherProxy
impl Unpin for WatcherProxy
impl !UnwindSafe for WatcherProxy
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
)