pub struct ProgressMeter { /* private fields */ }Expand description
Counter of finished runs that yields an update at most once per PROGRESS_INTERVAL.
Implementations§
Source§impl ProgressMeter
impl ProgressMeter
Sourcepub fn record_finished_run(
&mut self,
status: RunStatus,
) -> Option<ProgressUpdate>
pub fn record_finished_run( &mut self, status: RunStatus, ) -> Option<ProgressUpdate>
Counts a finished run with status. Returns an update once PROGRESS_INTERVAL has passed since the last
update.
Sourcepub fn update(&self) -> ProgressUpdate
pub fn update(&self) -> ProgressUpdate
Returns the update for the runs counted so far.
Trait Implementations§
Source§impl Clone for ProgressMeter
impl Clone for ProgressMeter
Auto Trait Implementations§
impl Freeze for ProgressMeter
impl RefUnwindSafe for ProgressMeter
impl Send for ProgressMeter
impl Sync for ProgressMeter
impl Unpin for ProgressMeter
impl UnsafeUnpin for ProgressMeter
impl UnwindSafe for ProgressMeter
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