fn create_netstack_environment_with<N, S, I>(
        &self,
        name: S,
        services: I,
    ) -> Result<netemul::TestEnvironment<'_>>
    where
        S: Into<String>,
        N: Netstack,
        I: IntoIterator,
        I::Item: Into<netemul_environment::LaunchService>,
    {
        self.create_environment(
            name,
            [
                KnownServices::RoutesState(N::VERSION),
                KnownServices::Filter(N::VERSION),
                KnownServices::Stack(N::VERSION),
                KnownServices::Netstack(N::VERSION),
                KnownServices::SocketProvider(N::VERSION),
                KnownServices::InterfacesState(N::VERSION),
                KnownServices::Log(N::VERSION),
                KnownServices::NeighborView(N::VERSION),
                KnownServices::NeighborController(N::VERSION),
            ]
            .iter()
            .map(netemul_environment::LaunchService::from)
            .chain(services.into_iter().map(Into::into)),
        )
    }
/// Creates an environment with the base Netstack services plus additional
/// ones in `services`.
Creates an environment with the base Netstack services plus additional
ones in `services`.
Creates an environment with the base Netstack services plus additional ones in ` services ` .
fn create_netstack_environment_with<N, S, I>(
        &self,
        name: S,
        services: I,
    ) -> Result<netemul::TestEnvironment<'_>>
    where
        S: Into<String>,
        N: Netstack,
        I: IntoIterator,
        I::Item: Into<netemul_environment::LaunchService>,
    {
        self.create_environment(
            name,
            [
                KnownServices::RoutesState(N::VERSION),
                KnownServices::Filter(N::VERSION),
                KnownServices::Stack(N::VERSION),
                KnownServices::Netstack(N::VERSION),
                KnownServices::SocketProvider(N::VERSION),
                KnownServices::InterfacesState(N::VERSION),
                KnownServices::Log(N::VERSION),
                KnownServices::NeighborView(N::VERSION),
                KnownServices::NeighborController(N::VERSION),
            ]
            .iter()
            .map(netemul_environment::LaunchService::from)
            .chain(services.into_iter().map(Into::into)),
        )
    }
fn create_netstack_environment_with < N , S , I > ( & self , name : S , services : I , ) -> Result < netemul :: TestEnvironment < ' _ > > where S : Into < String > , N : Netstack , I : IntoIterator , I :: Item : Into < netemul_environment :: LaunchService > , { self . create_environment ( name , [ KnownServices :: RoutesState ( N :: VERSION ) , KnownServices :: Filter ( N :: VERSION ) , KnownServices :: Stack ( N :: VERSION ) , KnownServices :: Netstack ( N :: VERSION ) , KnownServices :: SocketProvider ( N :: VERSION ) , KnownServices :: InterfacesState ( N :: VERSION ) , KnownServices :: Log ( N :: VERSION ) , KnownServices :: NeighborView ( N :: VERSION ) , KnownServices :: NeighborController ( N :: VERSION ) , ] . iter ( ) . map ( netemul_environment :: LaunchService :: from ) . chain ( services . into_iter ( ) . map ( Into :: into ) ) , ) }
Creates an environment with the base Netstack services plus additional
ones in `services`.
Creates an environment with the base Netstack services plus additional ones in ` services ` .
&self
name
S
services
I
&self
name
S
services
I