rlmesh::EnvTarget
The env argument of a run or session: an address, a served EnvServer, a borrowed RemoteEnv / RemoteVectorEnv, or a borrowed local env, vector env or factory.
struct EnvTarget<'a>(/* private field */)A single env converts with From (model.run(&mut env, ..)); a vector
env and a factory name their kind (EnvTarget::vector,
EnvTarget::factory).
Associated functions
vector
associated function[source]fn vector(env: &'a mut impl VectorEnv + Send + 'a) -> EnvTarget<'a>A borrowed vector env.
factory
associated function[source]fn factory<F: EnvFactory + Send + 'a>(
factory: &'a mut F,
) -> EnvTarget<'a>A borrowed factory: the run builds one env from it (only when it needs one) and closes that env; it never closes the factory.
Trait implementations
- impl From<&str> for EnvTarget<'_>
- impl From<String> for EnvTarget<'_>
- impl<'a> From<&'a EnvServer> for EnvTarget<'a>
- impl<'a> From<&'a mut RemoteEnv> for EnvTarget<'a>
- impl<'a> From<&'a mut RemoteVectorEnv> for EnvTarget<'a>
- impl<'a, E: Env + Send + 'a> From<&'a mut E> for EnvTarget<'a>
- impl Debug for EnvTarget<'_>