pub enum ProgressEvent<'a> {
Planned(&'a SweepOutline),
Warned(&'a SweepWarning),
RunCommitted(&'a RunOutcome),
Progressed(ProgressUpdate),
SearchBatchTold(&'a SearchUpdate),
Ended(&'a SweepReport),
}Expand description
Event in the progress of a sweep.
Variants§
Planned(&'a SweepOutline)
The sweep is planned and probed. A dry run ends here.
Warned(&'a SweepWarning)
A warning. The sweep still runs, but likely not as intended.
RunCommitted(&'a RunOutcome)
A run was written. Runs arrive in plan order, and a search’s runs in the order that it requests them.
Progressed(ProgressUpdate)
Runs have finished since the last update. Sent at most once per PROGRESS_INTERVAL.
SearchBatchTold(&'a SearchUpdate)
A search was told the evaluations of one batch. Batches arrive in order, each after its runs.
Ended(&'a SweepReport)
The sweep ended without an error.
Trait Implementations§
Source§impl<'a> Clone for ProgressEvent<'a>
impl<'a> Clone for ProgressEvent<'a>
impl<'a> Copy for ProgressEvent<'a>
Auto Trait Implementations§
impl<'a> Freeze for ProgressEvent<'a>
impl<'a> RefUnwindSafe for ProgressEvent<'a>
impl<'a> Send for ProgressEvent<'a>
impl<'a> Sync for ProgressEvent<'a>
impl<'a> Unpin for ProgressEvent<'a>
impl<'a> UnsafeUnpin for ProgressEvent<'a>
impl<'a> UnwindSafe for ProgressEvent<'a>
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