pub enum SweepEvent {
Planned(Box<SweepOutline>),
Warned(SweepWarning),
RunFinished {
outcome: Box<RunOutcome>,
series_dropped: bool,
},
SearchBatchTold(Arc<SearchUpdate>),
Finished(Box<SweepRecord>),
Failed(String),
}Expand description
Event of a sweep, in the order it happened.
Variants§
Planned(Box<SweepOutline>)
The sweep is planned and probed, and its runs start.
Warned(SweepWarning)
A warning. The sweep still runs, but likely not as intended.
RunFinished
A run was written. Runs arrive in plan order, and a search’s runs in the order that it requests them.
Fields
§
outcome: Box<RunOutcome>Outcome of the run as written, with an empty series once the series budget is spent.
§
series_dropped: boolWhether the run’s series passed the budget of SweepRunOptions::series_budget and was left out of
outcome.
SearchBatchTold(Arc<SearchUpdate>)
A search was told the evaluations of one batch, after the runs of the batch.
Finished(Box<SweepRecord>)
The sweep ran to its end or was aborted, as its record says. Nothing follows.
Failed(String)
The sweep ended on its own error, outside any run, with the error and its causes. Nothing follows.
Trait Implementations§
Source§impl Clone for SweepEvent
impl Clone for SweepEvent
Auto Trait Implementations§
impl Freeze for SweepEvent
impl RefUnwindSafe for SweepEvent
impl Send for SweepEvent
impl Sync for SweepEvent
impl Unpin for SweepEvent
impl UnsafeUnpin for SweepEvent
impl UnwindSafe for SweepEvent
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