Function add_device_to_devfs

Source
pub async fn add_device_to_devfs<'a, M: Manager>(
    network: &'a TestNetwork<'a>,
    realm: &'a TestRealm<'a>,
    name: String,
    endpoint_config: Option<EndpointConfig>,
) -> TestEndpoint<'a>
Expand description

Add a device into devfs to be fully managed by netcfg. Netcfg will discover and install the device into the Netstack. We cannot assume that netcfg has observed and installed the device as a result of this function, that condition must be observed via the interfaces watcher.

Returns the new endpoint that was added to the realm.