pub enum NetworksRequest {
WatchDefault {
responder: NetworksWatchDefaultResponder,
},
WatchProperties {
payload: NetworksWatchPropertiesRequest,
responder: NetworksWatchPropertiesResponder,
},
_UnknownMethod {
ordinal: u64,
control_handle: NetworksControlHandle,
method_type: MethodType,
},
}
Expand description
Protocol for acquiring NetworkToken
s, and querying properties of that
network.
Variants§
WatchDefault
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.
Fields
responder: NetworksWatchDefaultResponder
WatchProperties
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.
_UnknownMethod
An interaction was received which does not match any known method.
Fields
This variant is marked as non-exhaustive
control_handle: NetworksControlHandle
method_type: MethodType
Implementations§
Source§impl NetworksRequest
impl NetworksRequest
pub fn into_watch_default(self) -> Option<NetworksWatchDefaultResponder>
pub fn into_watch_properties( self, ) -> Option<(NetworksWatchPropertiesRequest, NetworksWatchPropertiesResponder)>
Sourcepub fn method_name(&self) -> &'static str
pub fn method_name(&self) -> &'static str
Name of the method defined in FIDL