pub trait TestSandboxExt {
    // Required methods
    fn create_netstack_realm<'a, N, S>(
        &'a self,
        name: S
    ) -> Result<TestRealm<'a>>
       where N: Netstack,
             S: Into<Cow<'a, str>>;
    fn create_netstack_realm_with<'a, N, S, I>(
        &'a self,
        name: S,
        children: I
    ) -> Result<TestRealm<'a>>
       where S: Into<Cow<'a, str>>,
             N: Netstack,
             I: IntoIterator,
             I::Item: Into<ChildDef>;
}
Expand description

Helpers for netemul::TestSandbox.

Required Methods§

source

fn create_netstack_realm<'a, N, S>(&'a self, name: S) -> Result<TestRealm<'a>>
where N: Netstack, S: Into<Cow<'a, str>>,

Creates a realm with Netstack services.

source

fn create_netstack_realm_with<'a, N, S, I>( &'a self, name: S, children: I ) -> Result<TestRealm<'a>>
where S: Into<Cow<'a, str>>, N: Netstack, I: IntoIterator, I::Item: Into<ChildDef>,

Creates a realm with the base Netstack services plus additional ones in children.

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

source§

impl TestSandboxExt for TestSandbox

source§

fn create_netstack_realm<'a, N, S>(&'a self, name: S) -> Result<TestRealm<'a>>
where N: Netstack, S: Into<Cow<'a, str>>,

source§

fn create_netstack_realm_with<'a, N, S, I>( &'a self, name: S, children: I ) -> Result<TestRealm<'a>>
where S: Into<Cow<'a, str>>, N: Netstack, I: IntoIterator, I::Item: Into<ChildDef>,

Implementors§