pub enum AdaptiveTestError {
Init(Error),
StatsUnavailable,
NoForks {
total: u64,
},
NoForkPoints {
points: u64,
},
EnergyExceeded {
total: u64,
limit: u64,
},
EnergyNegative {
energy: i64,
},
PoolNegative {
pool: i64,
},
}Expand description
Errors from adaptive exploration test scenarios.
Variants§
Init(Error)
Exploration initialization failed.
Exploration stats were not available after cleanup.
NoForks
Expected forked children but none were produced.
NoForkPoints
Expected fork points but none were triggered.
EnergyExceeded
Global energy cap was exceeded.
EnergyNegative
Global energy went negative.
PoolNegative
Reallocation pool went negative.
Trait Implementations§
Source§impl Debug for AdaptiveTestError
impl Debug for AdaptiveTestError
Source§impl Display for AdaptiveTestError
impl Display for AdaptiveTestError
Source§impl Error for AdaptiveTestError
impl Error for AdaptiveTestError
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()
Auto Trait Implementations§
impl Freeze for AdaptiveTestError
impl !RefUnwindSafe for AdaptiveTestError
impl Send for AdaptiveTestError
impl Sync for AdaptiveTestError
impl Unpin for AdaptiveTestError
impl UnsafeUnpin for AdaptiveTestError
impl !UnwindSafe for AdaptiveTestError
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