pub enum TrialOutcome {
Completed(Vec<MetricRecord>),
Pruned {
step: usize,
reason: String,
},
}Expand description
Result of executing a trial. Separates control flow (pruning) from errors.
Variants§
Completed(Vec<MetricRecord>)
Trial completed successfully with final metrics.
Pruned
Trial was pruned (stopped early) at the given step.
Trait Implementations§
Source§impl Clone for TrialOutcome
impl Clone for TrialOutcome
Source§fn clone(&self) -> TrialOutcome
fn clone(&self) -> TrialOutcome
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 TrialOutcome
impl RefUnwindSafe for TrialOutcome
impl Send for TrialOutcome
impl Sync for TrialOutcome
impl Unpin for TrialOutcome
impl UnsafeUnpin for TrialOutcome
impl UnwindSafe for TrialOutcome
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