pub struct PropertyWatcherProxy { /* private fields */ }Implementations§
Source§impl PropertyWatcherProxy
impl PropertyWatcherProxy
Sourcepub fn new(channel: AsyncChannel) -> Self
pub fn new(channel: AsyncChannel) -> Self
Create a new Proxy for fuchsia.net.policy.properties/PropertyWatcher.
Sourcepub fn take_event_stream(&self) -> PropertyWatcherEventStream
pub fn take_event_stream(&self) -> PropertyWatcherEventStream
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<PropertyWatcherWatchResult, DefaultFuchsiaResourceDialect> ⓘ
pub fn watch( &self, ) -> QueryResponseFut<PropertyWatcherWatchResult, DefaultFuchsiaResourceDialect> ⓘ
A hanging-get method that returns updates to the properties requested
when the watcher was created via [Networks.WatchProperties].
The first call returns a snapshot of all requested properties
for the watched network. Subsequent calls block until a property
has changed since the last call to Watch returned.
Only one call to this method may be pending at a time. Concurrent calls
on the same PropertyWatcher immediately closes the connection with
an zx.Status.ALREADY_EXISTS epitaph.
Trait Implementations§
Source§impl Clone for PropertyWatcherProxy
impl Clone for PropertyWatcherProxy
Source§fn clone(&self) -> PropertyWatcherProxy
fn clone(&self) -> PropertyWatcherProxy
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 PropertyWatcherProxy
impl Debug for PropertyWatcherProxy
Source§impl PropertyWatcherProxyInterface for PropertyWatcherProxy
impl PropertyWatcherProxyInterface for PropertyWatcherProxy
type WatchResponseFut = QueryResponseFut<Result<PropertyUpdate, PropertyWatcherError>>
fn watch(&self) -> Self::WatchResponseFut
Source§impl Proxy for PropertyWatcherProxy
impl Proxy for PropertyWatcherProxy
Source§type Protocol = PropertyWatcherMarker
type Protocol = PropertyWatcherMarker
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
Auto Trait Implementations§
impl !RefUnwindSafe for PropertyWatcherProxy
impl !UnwindSafe for PropertyWatcherProxy
impl Freeze for PropertyWatcherProxy
impl Send for PropertyWatcherProxy
impl Sync for PropertyWatcherProxy
impl Unpin for PropertyWatcherProxy
impl UnsafeUnpin for PropertyWatcherProxy
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
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T, D> Encode<Ambiguous1, D> for Twhere
D: ResourceDialect,
impl<T, D> Encode<Ambiguous1, D> for Twhere
D: ResourceDialect,
Source§impl<T, D> Encode<Ambiguous2, D> for Twhere
D: ResourceDialect,
impl<T, D> Encode<Ambiguous2, D> for Twhere
D: ResourceDialect,
Source§impl<T> FromClient for Twhere
T: Proxy,
impl<T> FromClient for Twhere
T: Proxy,
§impl<T> Pointable for T
impl<T> Pointable for T
Source§impl<T> ProxyHasDomain for Twhere
T: Proxy,
impl<T> ProxyHasDomain for Twhere
T: Proxy,
Source§fn domain(&self) -> ZirconClient
fn domain(&self) -> ZirconClient
Get a “client” for this proxy. This is just an object which has methods
for a few common handle creation operations.