pub enum BatchError {
Step {
world_index: usize,
error: TickError,
},
Observe(ObsError),
Config(ConfigError),
InvalidIndex {
world_index: usize,
num_worlds: usize,
},
NoObsPlan,
InvalidArgument {
reason: String,
},
}Expand description
Error from a batched operation, annotated with the failing world index.
Variants§
Step
A world’s step_sync() failed.
Fields
Observe(ObsError)
Observation extraction failed.
Config(ConfigError)
Configuration error during construction or reset.
InvalidIndex
World index out of bounds.
NoObsPlan
No observation plan was compiled (called observe without obs_spec).
InvalidArgument
Batch-level argument validation failed.
Trait Implementations§
Source§impl Debug for BatchError
impl Debug for BatchError
Source§impl Display for BatchError
impl Display for BatchError
Source§impl Error for BatchError
impl Error for BatchError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
Source§impl PartialEq for BatchError
impl PartialEq for BatchError
impl StructuralPartialEq for BatchError
Auto Trait Implementations§
impl Freeze for BatchError
impl RefUnwindSafe for BatchError
impl Send for BatchError
impl Sync for BatchError
impl Unpin for BatchError
impl UnsafeUnpin for BatchError
impl UnwindSafe for BatchError
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