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,
},
}
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.
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)>
Sourcepub fn method_name(&self) -> &'static str
pub fn method_name(&self) -> &'static str
Name of the method defined in FIDL
Trait Implementations§
Auto Trait Implementations§
impl Freeze for NetworkRegistryRequest
impl !RefUnwindSafe for NetworkRegistryRequest
impl Send for NetworkRegistryRequest
impl Sync for NetworkRegistryRequest
impl Unpin for NetworkRegistryRequest
impl !UnwindSafe for NetworkRegistryRequest
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more