pub struct ObservationEmittedEvent {Show 14 fields
pub session_id: String,
pub route: RuntimeEnvContext,
pub episode_id: String,
pub episode_record_id: String,
pub episode_ids: Vec<String>,
pub episode_record_ids: Vec<String>,
pub step: i64,
pub env_index: i32,
pub is_reset: bool,
pub num_envs: u32,
pub observation_space: Arc<SpaceSpec>,
pub observation: Option<Vec<Bytes>>,
pub raw_observation: Option<Vec<Bytes>>,
pub infos: Option<MetaMap>,
}Fields§
§session_id: String§route: RuntimeEnvContext§episode_id: String§episode_record_id: String§episode_ids: Vec<String>§episode_record_ids: Vec<String>§step: i64§env_index: i32§is_reset: bool§num_envs: u32§observation_space: Arc<SpaceSpec>Shared so the per-step, per-hook event fan-out clones an Arc pointer
rather than deep-copying the observation space spec on every step. Types
observation: when the relay policy converted it into a new layout, this
is the converted space and raw_observation keeps the contract’s.
observation: Option<Vec<Bytes>>Opaque per-leaf wire bytes; the relay is content-blind (§13).
To persist as a single artifact, use rlmesh-grpc’s
wire::leaves_to_blob — plain concatenation loses the leaf
boundaries, which cannot be recovered for variable-length leaves.
raw_observation: Option<Vec<Bytes>>The env’s observation before transform_observation ran; equals
observation when no transform changed it.
infos: Option<MetaMap>The env’s reset infos when is_reset; step infos ride on
StepCompletedEvent instead.
Trait Implementations§
Source§impl Clone for ObservationEmittedEvent
impl Clone for ObservationEmittedEvent
Source§impl Debug for ObservationEmittedEvent
impl Debug for ObservationEmittedEvent
Source§impl PartialEq for ObservationEmittedEvent
impl PartialEq for ObservationEmittedEvent
impl StructuralPartialEq for ObservationEmittedEvent
Auto Trait Implementations§
impl Freeze for ObservationEmittedEvent
impl RefUnwindSafe for ObservationEmittedEvent
impl Send for ObservationEmittedEvent
impl Sync for ObservationEmittedEvent
impl Unpin for ObservationEmittedEvent
impl UnsafeUnpin for ObservationEmittedEvent
impl UnwindSafe for ObservationEmittedEvent
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request