pub struct Progress { /* private fields */ }Expand description
Progress counters, updated by the library and read by front ends at any time.
Implementations§
Source§impl Progress
impl Progress
Sourcepub fn elapsed(&self) -> Duration
pub fn elapsed(&self) -> Duration
Time since Progress::new (the start of the run).
Sourcepub fn phase_started(&self, phase: Phase) -> Option<Duration>
pub fn phase_started(&self, phase: Phase) -> Option<Duration>
When phase started, measured from Progress::new; None if it has not.
Sourcepub fn set_phase(&self, phase: Phase)
pub fn set_phase(&self, phase: Phase)
Enters phase (front ends enter Phase::Writing and Phase::Done themselves) and
records when it started.
Sourcepub fn snapshot(&self) -> ProgressSnapshot
pub fn snapshot(&self) -> ProgressSnapshot
Reads all counters.
Sourcepub fn threads_started(&self) -> Option<usize>
pub fn threads_started(&self) -> Option<usize>
Worker threads the run started (D110): None until its pool is built, so a run that
fails or is cancelled afterwards still reports them.
Trait Implementations§
Auto Trait Implementations§
impl !Freeze for Progress
impl RefUnwindSafe for Progress
impl Send for Progress
impl Sync for Progress
impl Unpin for Progress
impl UnsafeUnpin for Progress
impl UnwindSafe for Progress
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
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
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