pub enum FuchsiaNetworksRequest {
SetDefault {
network_id: OptionalUint32,
responder: FuchsiaNetworksSetDefaultResponder,
},
Add {
network: Network,
responder: FuchsiaNetworksAddResponder,
},
Update {
network: Network,
responder: FuchsiaNetworksUpdateResponder,
},
Remove {
network_id: u32,
responder: FuchsiaNetworksRemoveResponder,
},
}Expand description
FuchsiaNetworks is used for Fuchsia to communicate changes to the network. Only one connection to this service is considered valid at any one time. If the connection is lost for any reason, all previously registered networks are considered invalid and will be removed.
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 FuchsiaNetworksRequest
impl FuchsiaNetworksRequest
pub fn into_set_default( self, ) -> Option<(OptionalUint32, FuchsiaNetworksSetDefaultResponder)>
pub fn into_add(self) -> Option<(Network, FuchsiaNetworksAddResponder)>
pub fn into_update(self) -> Option<(Network, FuchsiaNetworksUpdateResponder)>
pub fn into_remove(self) -> Option<(u32, FuchsiaNetworksRemoveResponder)>
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 FuchsiaNetworksRequest
impl !RefUnwindSafe for FuchsiaNetworksRequest
impl Send for FuchsiaNetworksRequest
impl Sync for FuchsiaNetworksRequest
impl Unpin for FuchsiaNetworksRequest
impl !UnwindSafe for FuchsiaNetworksRequest
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