rlmesh::RunContext
What a run exposes to its hooks.
trait RunContext: Send + SyncRequired methods
contract
required method[source]fn contract(&self) -> Result<Option<EnvContract>>The connected env’s contract; None before the env is connected.
num_envs
required method[source]fn num_envs(&self) -> Result<u64>Lanes the connected env runs (1 before connect).
read
required method[source]fn read(&self, observation: &Value, item: &ReadItem) -> Result<Value>Read a semantic role or input leaf through a read-only adapter.
frame_sources
required method[source]fn frame_sources(&self) -> Result<FrameSources<'_>>Discover the currently reachable image and render sources.