pub struct SweepProgress {
pub phase: SweepPhase,
pub runs_total: u64,
pub runs_skipped: u64,
pub runs_done: u64,
pub runs_waiting: u64,
pub runs_failed: u64,
pub elapsed: Duration,
pub remaining: Option<Duration>,
pub active_runs: Vec<ActiveRun>,
}Expand description
Progress of a sweep at the moment it was read.
Fields§
§phase: SweepPhaseStage the sweep has reached.
runs_total: u64Number of runs this sweep executes. Until the sweep is planned, the number of runs in the whole plan, or in a search’s whole budget.
runs_skipped: u64Number of runs a resumed directory held already. The sweep keeps them.
runs_done: u64Number of runs written so far.
runs_waiting: u64Number of runs that finished and wait for an earlier run to be written. An abort drops them.
runs_failed: u64Number of written runs that ended on a fault or a timeout.
elapsed: DurationTime since the sweep started, pauses left out.
remaining: Option<Duration>Time left at the pace so far, None before the first run is written and once the sweep ends.
The pace counts the runs that finished and the share of its ticks each run in progress has stepped. A time too
long for a Duration, such as the projection for a search with a budget of u64::MAX evaluations, is
None.
active_runs: Vec<ActiveRun>Runs in progress, in order of their ids.
Trait Implementations§
Source§impl Clone for SweepProgress
impl Clone for SweepProgress
Source§impl Debug for SweepProgress
impl Debug for SweepProgress
impl Eq for SweepProgress
Source§impl PartialEq for SweepProgress
impl PartialEq for SweepProgress
impl StructuralPartialEq for SweepProgress
Auto Trait Implementations§
impl Freeze for SweepProgress
impl RefUnwindSafe for SweepProgress
impl Send for SweepProgress
impl Sync for SweepProgress
impl Unpin for SweepProgress
impl UnsafeUnpin for SweepProgress
impl UnwindSafe for SweepProgress
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.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> ⓘ
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> ⓘ
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