pub fn try_run_mesh_host<U, F, T>(base_name: &str, f: F) -> Result<()>
Expand description
Runs a mesh host in the current thread, then exits the process, if this
process was launched by Mesh::launch_host
.
The mesh invitation is provided via environment variables. If a mesh
invitation is not available this function will return immediately with Ok
.
If a mesh invitation is available, this function joins the mesh and runs the
future returned by f
until f
returns or the parent process shuts down
the mesh.