pub enum NetworkRegistryRequest {
SetDefault {
network_id: OptionalUint32,
responder: NetworkRegistrySetDefaultResponder,
},
Add {
network: Network,
responder: NetworkRegistryAddResponder,
},
Update {
network: Network,
responder: NetworkRegistryUpdateResponder,
},
Remove {
network_id: u32,
responder: NetworkRegistryRemoveResponder,
},
CheckPresence {
responder: NetworkRegistryCheckPresenceResponder,
},
}
Variants§
SetDefault
Sets the default network.
The network must have previously been registered by a call to Add
.
Add
Add a new network.
This call will not return until the DNS servers have been successfully updated in netcfg.
Update
Update a previously Added network. This call will not return until the DNS servers have been successfully updated in netcfg.
Remove
Remove a previously Added network. This call will not return until the DNS servers have been successfully updated in netcfg.
CheckPresence
No-op method that allows checking for presence.
TODO(https://fxbug.dev/296283299): It’s not currently possible for a client with an optionally-provided protocol to check whether there’s someone on the other end without making a FIDL call . This method provides a workaround by giving a client a method that it can call to check for liveness.
Fields
responder: NetworkRegistryCheckPresenceResponder
Implementations§
Source§impl NetworkRegistryRequest
impl NetworkRegistryRequest
pub fn into_set_default( self, ) -> Option<(OptionalUint32, NetworkRegistrySetDefaultResponder)>
pub fn into_add(self) -> Option<(Network, NetworkRegistryAddResponder)>
pub fn into_update(self) -> Option<(Network, NetworkRegistryUpdateResponder)>
pub fn into_remove(self) -> Option<(u32, NetworkRegistryRemoveResponder)>
pub fn into_check_presence( self, ) -> Option<NetworkRegistryCheckPresenceResponder>
Sourcepub fn method_name(&self) -> &'static str
pub fn method_name(&self) -> &'static str
Name of the method defined in FIDL