fidl_fuchsia_netemul_network

Trait NetworkManagerProxyInterface

Source
pub trait NetworkManagerProxyInterface: Send + Sync {
    type ListNetworksResponseFut: Future<Output = Result<Vec<String>, Error>> + Send;
    type CreateNetworkResponseFut: Future<Output = Result<(i32, Option<ClientEnd<NetworkMarker>>), Error>> + Send;
    type GetNetworkResponseFut: Future<Output = Result<Option<ClientEnd<NetworkMarker>>, Error>> + Send;

    // Required methods
    fn list_networks(&self) -> Self::ListNetworksResponseFut;
    fn create_network(
        &self,
        name: &str,
        config: &NetworkConfig,
    ) -> Self::CreateNetworkResponseFut;
    fn get_network(&self, name: &str) -> Self::GetNetworkResponseFut;
}

Required Associated Types§

Required Methods§

Implementors§