pub struct PropertyWatcherSynchronousProxy { /* private fields */ }Implementations§
Source§impl PropertyWatcherSynchronousProxy
impl PropertyWatcherSynchronousProxy
pub fn new(channel: Channel) -> Self
pub fn into_channel(self) -> Channel
Sourcepub fn wait_for_event(
&self,
deadline: MonotonicInstant,
) -> Result<PropertyWatcherEvent, Error>
pub fn wait_for_event( &self, deadline: MonotonicInstant, ) -> Result<PropertyWatcherEvent, Error>
Waits until an event arrives and returns it. It is safe for other threads to make concurrent requests while waiting for an event.
Sourcepub fn watch(
&self,
___deadline: MonotonicInstant,
) -> Result<PropertyWatcherWatchResult, Error>
pub fn watch( &self, ___deadline: MonotonicInstant, ) -> Result<PropertyWatcherWatchResult, Error>
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 From<Channel> for PropertyWatcherSynchronousProxy
Available on Fuchsia only.
impl From<Channel> for PropertyWatcherSynchronousProxy
Available on Fuchsia only.
Source§impl From<PropertyWatcherSynchronousProxy> for NullableHandle
Available on Fuchsia only.
impl From<PropertyWatcherSynchronousProxy> for NullableHandle
Available on Fuchsia only.
Source§fn from(value: PropertyWatcherSynchronousProxy) -> Self
fn from(value: PropertyWatcherSynchronousProxy) -> Self
Converts to this type from the input type.
Source§impl FromClient for PropertyWatcherSynchronousProxy
Available on Fuchsia only.
impl FromClient for PropertyWatcherSynchronousProxy
Available on Fuchsia only.
Source§type Protocol = PropertyWatcherMarker
type Protocol = PropertyWatcherMarker
The protocol.
Source§fn from_client(value: ClientEnd<PropertyWatcherMarker>) -> Self
fn from_client(value: ClientEnd<PropertyWatcherMarker>) -> Self
Converts from a client.
Source§impl SynchronousProxy for PropertyWatcherSynchronousProxy
Available on Fuchsia only.
impl SynchronousProxy for PropertyWatcherSynchronousProxy
Available on Fuchsia only.
Source§type Proxy = PropertyWatcherProxy
type Proxy = PropertyWatcherProxy
The async proxy for the same protocol.
Source§type Protocol = PropertyWatcherMarker
type Protocol = PropertyWatcherMarker
The protocol which this
Proxy controls.Source§fn from_channel(inner: Channel) -> Self
fn from_channel(inner: Channel) -> Self
Create a proxy over the given channel.
Source§fn into_channel(self) -> Channel
fn into_channel(self) -> Channel
Convert the proxy back into a channel.
Source§fn as_channel(&self) -> &Channel
fn as_channel(&self) -> &Channel
Get a reference to the proxy’s underlying channel. Read more
Auto Trait Implementations§
impl Freeze for PropertyWatcherSynchronousProxy
impl RefUnwindSafe for PropertyWatcherSynchronousProxy
impl Send for PropertyWatcherSynchronousProxy
impl Sync for PropertyWatcherSynchronousProxy
impl Unpin for PropertyWatcherSynchronousProxy
impl UnsafeUnpin for PropertyWatcherSynchronousProxy
impl UnwindSafe for PropertyWatcherSynchronousProxy
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