pub struct NetworksSynchronousProxy { /* private fields */ }
Implementations§
Source§impl NetworksSynchronousProxy
impl NetworksSynchronousProxy
pub fn new(channel: Channel) -> Self
pub fn into_channel(self) -> Channel
Sourcepub fn wait_for_event(
&self,
deadline: MonotonicInstant,
) -> Result<NetworksEvent, Error>
pub fn wait_for_event( &self, deadline: MonotonicInstant, ) -> Result<NetworksEvent, 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_default(
&self,
___deadline: MonotonicInstant,
) -> Result<NetworkToken, Error>
pub fn watch_default( &self, ___deadline: MonotonicInstant, ) -> Result<NetworkToken, Error>
Watches for changes in the default network.
The first call always returns a NetworkToken
representing the
current default network, or if one is not present, blocks until a
default network is set. Subsequent calls will block until the default
network has changed, returning a new NetworkToken
for the updated
default network.
Only one call to this method should be pending per connection.
Sourcepub fn watch_properties(
&self,
payload: NetworksWatchPropertiesRequest,
___deadline: MonotonicInstant,
) -> Result<NetworksWatchPropertiesResult, Error>
pub fn watch_properties( &self, payload: NetworksWatchPropertiesRequest, ___deadline: MonotonicInstant, ) -> Result<NetworksWatchPropertiesResult, Error>
Watches for changes in requested properties for the given NetworkToken
The first call will always return a snapshot of all requested
properties. Subsequent calls will block until any property changes, at
which point the changed property or properties will be sent. If the set
of requested [properties
] changes on a subsequent call, the previously
unreported property will be sent immediately, before future calls will
return to the hanging get pattern. If the network represented by
network
is no longer the default network, the connection will be
closed with DEFAULT_NETWORK_CHANGED
.
Only one call to this method should be pending per NetworkToken
per connection.
Trait Implementations§
Source§impl Debug for NetworksSynchronousProxy
impl Debug for NetworksSynchronousProxy
Source§impl From<Channel> for NetworksSynchronousProxy
impl From<Channel> for NetworksSynchronousProxy
Source§impl From<NetworksSynchronousProxy> for Handle
impl From<NetworksSynchronousProxy> for Handle
Source§fn from(value: NetworksSynchronousProxy) -> Self
fn from(value: NetworksSynchronousProxy) -> Self
Source§impl FromClient for NetworksSynchronousProxy
impl FromClient for NetworksSynchronousProxy
Source§type Protocol = NetworksMarker
type Protocol = NetworksMarker
Source§fn from_client(value: ClientEnd<NetworksMarker>) -> Self
fn from_client(value: ClientEnd<NetworksMarker>) -> Self
Source§impl SynchronousProxy for NetworksSynchronousProxy
impl SynchronousProxy for NetworksSynchronousProxy
Source§type Proxy = NetworksProxy
type Proxy = NetworksProxy
Source§type Protocol = NetworksMarker
type Protocol = NetworksMarker
Proxy
controls.