pub struct EnvInfo {
pub obs_version: u32,
pub action_version: u32,
pub decision_kind: i8,
pub current_player: i8,
pub actor: i8,
pub decision_count: u32,
pub tick_count: u32,
pub terminal: Option<TerminalResult>,
pub illegal_action: bool,
pub engine_error: bool,
pub engine_error_code: u8,
}Expand description
Metadata describing the current environment state for info payloads.
Fields§
§obs_version: u32Observation encoding version.
action_version: u32Action encoding version.
decision_kind: i8Decision kind encoded as a small integer (or none).
current_player: i8Current player index for the decision, or -1 when terminal.
actor: i8Player perspective used for the observation.
decision_count: u32Decision count in the current episode.
tick_count: u32Tick count in the current episode.
terminal: Option<TerminalResult>Terminal result if the episode has ended.
illegal_action: boolWhether the last action was illegal.
engine_error: boolWhether the last step hit an engine error.
engine_error_code: u8Error code for the last engine error.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for EnvInfo
impl RefUnwindSafe for EnvInfo
impl Send for EnvInfo
impl Sync for EnvInfo
impl Unpin for EnvInfo
impl UnwindSafe for EnvInfo
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more