pub struct FormattedProgressReporter<F, C> { /* private fields */ }Expand description
Progress reporter that formats each metric snapshot and sends it to a consumer.
This reporter is the common adapter behind text and JSON progress reporters. It converts every counter in an event into a metric snapshot, formats the snapshot, then passes the formatted string to the configured consumer.
Implementations§
Trait Implementations§
Source§impl<F, C> ProgressReporter for FormattedProgressReporter<F, C>
impl<F, C> ProgressReporter for FormattedProgressReporter<F, C>
Source§fn report(&self, event: &ProgressEvent)
fn report(&self, event: &ProgressEvent)
Formats and consumes every metric snapshot in an event.
§Parameters
event- Event whose metric snapshots should be formatted.
Auto Trait Implementations§
impl<F, C> Freeze for FormattedProgressReporter<F, C>
impl<F, C> RefUnwindSafe for FormattedProgressReporter<F, C>where
F: RefUnwindSafe,
C: RefUnwindSafe,
impl<F, C> Send for FormattedProgressReporter<F, C>
impl<F, C> Sync for FormattedProgressReporter<F, C>
impl<F, C> Unpin for FormattedProgressReporter<F, C>
impl<F, C> UnsafeUnpin for FormattedProgressReporter<F, C>where
F: UnsafeUnpin,
C: UnsafeUnpin,
impl<F, C> UnwindSafe for FormattedProgressReporter<F, C>where
F: UnwindSafe,
C: UnwindSafe,
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