pub enum NetworkContextRequest {
Clone {
network_context: ServerEnd<NetworkContextMarker>,
control_handle: NetworkContextControlHandle,
},
GetNetworkManager {
net_manager: ServerEnd<NetworkManagerMarker>,
control_handle: NetworkContextControlHandle,
},
GetEndpointManager {
endp_manager: ServerEnd<EndpointManagerMarker>,
control_handle: NetworkContextControlHandle,
},
Setup {
networks: Vec<NetworkSetup>,
responder: NetworkContextSetupResponder,
},
}
Expand description
Main entry point to manage virtual networks and endpoints.
Every new connection to NetworkContext provides access to a an isolated
namespace for networks and endpoints. Clone
is the only means by which a
client can acquire a new connection to the same network context.
Variants§
Clone
GetNetworkManager
GetEndpointManager
Setup
Creates a collection of networks described by networks
.
status
is ZX_OK
for success
setup_handle
is a resource that references and maintains the lifecycle of
the created networks and endpoints.
Implementations§
source§impl NetworkContextRequest
impl NetworkContextRequest
pub fn into_clone( self ) -> Option<(ServerEnd<NetworkContextMarker>, NetworkContextControlHandle)>
pub fn into_get_network_manager( self ) -> Option<(ServerEnd<NetworkManagerMarker>, NetworkContextControlHandle)>
pub fn into_get_endpoint_manager( self ) -> Option<(ServerEnd<EndpointManagerMarker>, NetworkContextControlHandle)>
pub fn into_setup( self ) -> Option<(Vec<NetworkSetup>, NetworkContextSetupResponder)>
sourcepub fn method_name(&self) -> &'static str
pub fn method_name(&self) -> &'static str
Name of the method defined in FIDL