fidl_fuchsia_netemul_network

Trait NetworkContextProxyInterface

Source
pub trait NetworkContextProxyInterface: Send + Sync {
    type SetupResponseFut: Future<Output = Result<(i32, Option<ClientEnd<SetupHandleMarker>>), Error>> + Send;

    // Required methods
    fn clone(
        &self,
        network_context: ServerEnd<NetworkContextMarker>,
    ) -> Result<(), Error>;
    fn get_network_manager(
        &self,
        net_manager: ServerEnd<NetworkManagerMarker>,
    ) -> Result<(), Error>;
    fn get_endpoint_manager(
        &self,
        endp_manager: ServerEnd<EndpointManagerMarker>,
    ) -> Result<(), Error>;
    fn setup(&self, networks: &[NetworkSetup]) -> Self::SetupResponseFut;
}

Required Associated Types§

Source

type SetupResponseFut: Future<Output = Result<(i32, Option<ClientEnd<SetupHandleMarker>>), Error>> + Send

Required Methods§

Source

fn clone( &self, network_context: ServerEnd<NetworkContextMarker>, ) -> Result<(), Error>

Source

fn get_network_manager( &self, net_manager: ServerEnd<NetworkManagerMarker>, ) -> Result<(), Error>

Source

fn get_endpoint_manager( &self, endp_manager: ServerEnd<EndpointManagerMarker>, ) -> Result<(), Error>

Source

fn setup(&self, networks: &[NetworkSetup]) -> Self::SetupResponseFut

Implementors§