pub struct ProgressReporter { /* private fields */ }Expand description
The terminal progress display for a whole run.
Cheap to share across the rayon workers: every method is &self and
no-ops when the display is disabled.
Implementations§
Source§impl ProgressReporter
impl ProgressReporter
A reporter that displays nothing. Used by tests and by callers of the library API that drive the analysis themselves.
Sourcepub fn file(&self, index: usize) -> FileProgress<'_>
pub fn file(&self, index: usize) -> FileProgress<'_>
A handle scoped to one file group, for the code that actually runs the analysis.
Sourcepub fn error(&self, message: &str)
pub fn error(&self, message: &str)
Print an error line above the display. Shown even under --quiet.
Routed through log_line rather than matched on the mode: the two
would say the same thing, since a log sink is registered exactly while
a display is up.
Sourcepub fn finish(&self, analysed: usize, failed: bool)
pub fn finish(&self, analysed: usize, failed: bool)
Tear the display down once every file is done, leaving the final state on screen, and report what the run got through.
analysed is the number of file groups that completed successfully;
anything that failed has already been reported as an error line.
failed turns the closing “Complete.” red.
Auto Trait Implementations§
impl Freeze for ProgressReporter
impl RefUnwindSafe for ProgressReporter
impl Send for ProgressReporter
impl Sync for ProgressReporter
impl Unpin for ProgressReporter
impl UnsafeUnpin for ProgressReporter
impl UnwindSafe for ProgressReporter
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> 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 moreSource§impl<T> Pointable for T
impl<T> Pointable for T
Source§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
Source§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
self from the equivalent element of its
superset. Read moreSource§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
self is actually part of its subset T (and can be converted to it).Source§fn to_subset_unchecked(&self) -> SS
fn to_subset_unchecked(&self) -> SS
self.to_subset but without any property checks. Always succeeds.Source§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
self to the equivalent element of its superset.