pub struct MonitorSynchronousProxy { /* private fields */ }Implementations§
Source§impl MonitorSynchronousProxy
impl MonitorSynchronousProxy
pub fn new(channel: Channel) -> Self
pub fn into_channel(self) -> Channel
Sourcepub fn wait_for_event(
&self,
deadline: MonotonicInstant,
) -> Result<MonitorEvent, Error>
pub fn wait_for_event( &self, deadline: MonotonicInstant, ) -> Result<MonitorEvent, 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 set_options(&self, payload: &MonitorOptions) -> Result<(), Error>
pub fn set_options(&self, payload: &MonitorOptions) -> Result<(), Error>
Controls verbosity of results returned from calls to [Watch]. If
options are set via this method, it must be in the first call made
over the channel.
Calling this method after either it or [Watch] have already been
invoked will result in closing the channel. If this method is not
called before calling [Watch], Snapshot responses will not be
modified.
Sourcepub fn watch(&self, ___deadline: MonotonicInstant) -> Result<Snapshot, Error>
pub fn watch(&self, ___deadline: MonotonicInstant) -> Result<Snapshot, Error>
Hanging-get API for changes in network reachability state.
Watch returns a snapshot of the system’s most recent reachability
state information. The first call returns a current snapshot.
Subsequent calls to Watch block until the previously-observed state
changes.
While this API guarantees that any state returned was a valid network state at some point, it does not guarantee observation of every intermediate state.
It is not valid to call Watch concurrently. Calling Watch while
another call over the same server end is in flight will result in the
closing the channel.
- response a snapshot of current system reachability state.
Trait Implementations§
Source§impl Debug for MonitorSynchronousProxy
impl Debug for MonitorSynchronousProxy
Source§impl From<Channel> for MonitorSynchronousProxy
Available on Fuchsia only.
impl From<Channel> for MonitorSynchronousProxy
Source§impl From<MonitorSynchronousProxy> for NullableHandle
Available on Fuchsia only.
impl From<MonitorSynchronousProxy> for NullableHandle
Source§fn from(value: MonitorSynchronousProxy) -> Self
fn from(value: MonitorSynchronousProxy) -> Self
Source§impl FromClient for MonitorSynchronousProxy
Available on Fuchsia only.
impl FromClient for MonitorSynchronousProxy
Source§type Protocol = MonitorMarker
type Protocol = MonitorMarker
Source§fn from_client(value: ClientEnd<MonitorMarker>) -> Self
fn from_client(value: ClientEnd<MonitorMarker>) -> Self
Source§impl SynchronousProxy for MonitorSynchronousProxy
Available on Fuchsia only.
impl SynchronousProxy for MonitorSynchronousProxy
Source§type Proxy = MonitorProxy
type Proxy = MonitorProxy
Source§type Protocol = MonitorMarker
type Protocol = MonitorMarker
Proxy controls.