fn new_netstack<N, S, T>(&self, name: T) -> Result<(netemul::TestRealm<'_>, S::Proxy)>
    where
        N: Netstack,
        S: fidl::endpoints::ServiceMarker + fidl::endpoints::DiscoverableService,
        T: Into<String>,
    {
        let realm =
            self.create_netstack_realm::<N, _>(name).context("failed to create test realm")?;
        let netstack_proxy =
            realm.connect_to_service::<S>().context("failed to connect to netstack")?;
        Ok((realm, netstack_proxy))
    }
/// Helper function to create a new Netstack realm and connect to a netstack
/// service on it.
Helper function to create a new Netstack realm and connect to a netstack
service on it.
Helper function to create a new Netstack realm and connect to a netstack service on it .
fn new_netstack<N, S, T>(&self, name: T) -> Result<(netemul::TestRealm<'_>, S::Proxy)>
    where
        N: Netstack,
        S: fidl::endpoints::ServiceMarker + fidl::endpoints::DiscoverableService,
        T: Into<String>,
    {
        let realm =
            self.create_netstack_realm::<N, _>(name).context("failed to create test realm")?;
        let netstack_proxy =
            realm.connect_to_service::<S>().context("failed to connect to netstack")?;
        Ok((realm, netstack_proxy))
    }
fn new_netstack < N , S , T > ( & self , name : T ) -> Result < ( netemul :: TestRealm < ' _ > , S :: Proxy ) > where N : Netstack , S : fidl :: endpoints :: ServiceMarker + fidl :: endpoints :: DiscoverableService , T : Into < String > , { let realm = self . create_netstack_realm :: < N , _ > ( name ) . context ( " " ) ? ; let netstack_proxy = realm . connect_to_service :: < S > ( ) . context ( " " ) ? ; Ok ( ( realm , netstack_proxy ) ) }
Helper function to create a new Netstack realm and connect to a netstack
service on it.
Helper function to create a new Netstack realm and connect to a netstack service on it .
&self
name
T
&self
name
T