pub struct ObsMetadata {
pub tick_id: TickId,
pub age_ticks: u64,
pub coverage: f64,
pub world_generation_id: WorldGenerationId,
pub parameter_version: ParameterVersion,
}Expand description
Metadata accompanying an observation extraction.
Populated by ObsPlan::execute from the
snapshot being observed. All six fields are guaranteed to be set.
Fields§
§tick_id: TickIdTick at which the observed snapshot was produced.
age_ticks: u64Age of the snapshot relative to the current engine tick. In Lockstep mode this is always 0. In RealtimeAsync it may be > 0 if reading a stale snapshot.
coverage: f64Fraction of the observation tensor filled with valid data
(i.e., valid_ratio from the region plan).
world_generation_id: WorldGenerationIdArena generation of the observed snapshot.
parameter_version: ParameterVersionParameter version at the time of the snapshot.
Trait Implementations§
Source§impl Clone for ObsMetadata
impl Clone for ObsMetadata
Source§fn clone(&self) -> ObsMetadata
fn clone(&self) -> ObsMetadata
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ObsMetadata
impl Debug for ObsMetadata
Source§impl PartialEq for ObsMetadata
impl PartialEq for ObsMetadata
impl StructuralPartialEq for ObsMetadata
Auto Trait Implementations§
impl Freeze for ObsMetadata
impl RefUnwindSafe for ObsMetadata
impl Send for ObsMetadata
impl Sync for ObsMetadata
impl Unpin for ObsMetadata
impl UnsafeUnpin for ObsMetadata
impl UnwindSafe for ObsMetadata
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