pub async fn with_netcfg_owned_device<M: Manager, N: Netstack, F: for<'a> FnOnce(u64, &'a TestNetwork<'a>, &'a StateProxy, &'a TestRealm<'a>, &'a TestSandbox) -> LocalBoxFuture<'a, ()>>(
name: &str,
manager_config: ManagerConfig,
use_out_of_stack_dhcp_client: bool,
extra_known_service_providers: impl IntoIterator<Item = KnownServiceProvider>,
after_interface_up: F,
) -> String
Expand description
Initialize a realm with a device that is owned by netcfg.
The device is discovered through devfs and installed into
the Netstack via netcfg. after_interface_up
is called
once the interface has been discovered via the Netstack
interfaces watcher.