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 Python info payloads.
Fields§
§obs_version: u32§action_version: u32§decision_kind: i8§current_player: i8§actor: i8§decision_count: u32§tick_count: u32§terminal: Option<TerminalResult>§illegal_action: bool§engine_error: bool§engine_error_code: u8Trait 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