pub struct NetworksProxy { /* private fields */ }
Implementations§
Source§impl NetworksProxy
impl NetworksProxy
Sourcepub fn new(channel: AsyncChannel) -> Self
pub fn new(channel: AsyncChannel) -> Self
Create a new Proxy for fuchsia.net.policy.properties/Networks.
Sourcepub fn take_event_stream(&self) -> NetworksEventStream
pub fn take_event_stream(&self) -> NetworksEventStream
Get a Stream of events from the remote end of the protocol.
§Panics
Panics if the event stream was already taken.
Sourcepub fn watch_default(
&self,
) -> QueryResponseFut<NetworkToken, DefaultFuchsiaResourceDialect>
pub fn watch_default( &self, ) -> QueryResponseFut<NetworkToken, DefaultFuchsiaResourceDialect>
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,
) -> QueryResponseFut<NetworksWatchPropertiesResult, DefaultFuchsiaResourceDialect>
pub fn watch_properties( &self, payload: NetworksWatchPropertiesRequest, ) -> QueryResponseFut<NetworksWatchPropertiesResult, DefaultFuchsiaResourceDialect>
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 Clone for NetworksProxy
impl Clone for NetworksProxy
Source§fn clone(&self) -> NetworksProxy
fn clone(&self) -> NetworksProxy
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for NetworksProxy
impl Debug for NetworksProxy
Source§impl NetworksProxyInterface for NetworksProxy
impl NetworksProxyInterface for NetworksProxy
type WatchDefaultResponseFut = QueryResponseFut<NetworkToken>
type WatchPropertiesResponseFut = QueryResponseFut<Result<Vec<PropertyUpdate>, WatchError>>
fn watch_default(&self) -> Self::WatchDefaultResponseFut
fn watch_properties( &self, payload: NetworksWatchPropertiesRequest, ) -> Self::WatchPropertiesResponseFut
Source§impl Proxy for NetworksProxy
impl Proxy for NetworksProxy
Source§type Protocol = NetworksMarker
type Protocol = NetworksMarker
Proxy
controls.