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
Trait Implementations§
Auto Trait Implementations§
impl Freeze for NetworkContextRequest
impl !RefUnwindSafe for NetworkContextRequest
impl Send for NetworkContextRequest
impl Sync for NetworkContextRequest
impl Unpin for NetworkContextRequest
impl !UnwindSafe for NetworkContextRequest
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