pub async fn spawn_and_get_nested_environment(self) -> Result<NestedEnvironment, Error> {
        let environment = self.spawn()?;
        // Wait for environment to be setup.
        let _ = environment.completion_rx.await??;

        if let Some(env) = environment.nested_environment {
            return Ok(env);
        }

        return Err(format_err!("nested environment not created"));
    }
/// Spawns a nested environment and returns the associated
/// NestedEnvironment. Note that this is a helper function that provides a
/// shortcut for calling EnvironmentBuilder::name() and
/// EnvironmentBuilder::spawn().
Spawns a nested environment and returns the associated
NestedEnvironment. Note that this is a helper function that provides a
shortcut for calling EnvironmentBuilder::name() and
EnvironmentBuilder::spawn().
Spawns a nested environment and returns the associated NestedEnvironment . Note that this is a helper function that provides a shortcut for calling EnvironmentBuilder :: name () and EnvironmentBuilder :: spawn () .
pub async fn spawn_and_get_nested_environment(self) -> Result<NestedEnvironment, Error> {
        let environment = self.spawn()?;
        // Wait for environment to be setup.
        let _ = environment.completion_rx.await??;
        if let Some(env) = environment.nested_environment {
            return Ok(env);
        }
        return Err(format_err!("nested environment not created"));
    }
pub async fn spawn_and_get_nested_environment ( self ) -> Result < NestedEnvironment , Error > { let environment = self . spawn ( ) ? ; // Wait for environment to be setup. let _ = environment . completion_rx . await ? ? ; if let Some ( env ) = environment . nested_environment { return Ok ( env ) ; } return Err ( format_err ! ( " " ) ) ; }
Spawns a nested environment and returns the associated
NestedEnvironment.
Spawns a nested environment and returns the associated NestedEnvironment .
self
self