pub enum NetworkManagerRequest {
ListNetworks {
responder: NetworkManagerListNetworksResponder,
},
CreateNetwork {
name: String,
config: NetworkConfig,
responder: NetworkManagerCreateNetworkResponder,
},
GetNetwork {
name: String,
responder: NetworkManagerGetNetworkResponder,
},
}
Expand description
Manages virtual networks.
Variants§
ListNetworks
Lists emulated networks by name.
Fields
§
responder: NetworkManagerListNetworksResponder
CreateNetwork
Creates a new network with given name and config.
GetNetwork
Gets a handle to a network.
Implementations§
Source§impl NetworkManagerRequest
impl NetworkManagerRequest
pub fn into_list_networks(self) -> Option<NetworkManagerListNetworksResponder>
pub fn into_create_network( self, ) -> Option<(String, NetworkConfig, NetworkManagerCreateNetworkResponder)>
pub fn into_get_network( self, ) -> Option<(String, NetworkManagerGetNetworkResponder)>
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 NetworkManagerRequest
impl !RefUnwindSafe for NetworkManagerRequest
impl Send for NetworkManagerRequest
impl Sync for NetworkManagerRequest
impl Unpin for NetworkManagerRequest
impl !UnwindSafe for NetworkManagerRequest
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