pub enum TurnOutcome {
Success,
DepthLimitExceeded,
StepLimitExceeded {
steps_executed: u32,
},
GraphMemoryDisabled,
PartialSuccess {
episode_recorded: bool,
extraction_failed: bool,
patches_failed: Vec<String>,
warnings: Vec<String>,
},
Error(String),
}Expand description
High-level turn result (soft limits use variants instead of Err when Ok carries diagnostics).
Variants§
Success
DepthLimitExceeded
StepLimitExceeded
GraphMemoryDisabled
PartialSuccess
Fields
Error(String)
Trait Implementations§
Source§impl Clone for TurnOutcome
impl Clone for TurnOutcome
Source§fn clone(&self) -> TurnOutcome
fn clone(&self) -> TurnOutcome
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 moreAuto Trait Implementations§
impl Freeze for TurnOutcome
impl RefUnwindSafe for TurnOutcome
impl Send for TurnOutcome
impl Sync for TurnOutcome
impl Unpin for TurnOutcome
impl UnsafeUnpin for TurnOutcome
impl UnwindSafe for TurnOutcome
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