pub struct MetricSnapshotProgressReporter<C = ArcConsumer<ProgressMetricSnapshot>> { /* private fields */ }Expand description
Progress reporter that sends metric snapshot objects to a consumer.
This reporter is useful for GUI, database, metrics, and monitoring adapters that want structured metric snapshots instead of preformatted strings.
Implementations§
Source§impl<C> MetricSnapshotProgressReporter<C>
impl<C> MetricSnapshotProgressReporter<C>
Trait Implementations§
Source§impl<C> ProgressReporter for MetricSnapshotProgressReporter<C>
impl<C> ProgressReporter for MetricSnapshotProgressReporter<C>
Source§fn report(&self, event: &ProgressEvent)
fn report(&self, event: &ProgressEvent)
Sends every metric snapshot in the event to the configured consumer.
§Parameters
event- Event whose metric snapshots should be consumed.
Auto Trait Implementations§
impl<C> Freeze for MetricSnapshotProgressReporter<C>where
C: Freeze,
impl<C> RefUnwindSafe for MetricSnapshotProgressReporter<C>where
C: RefUnwindSafe,
impl<C> Send for MetricSnapshotProgressReporter<C>where
C: Send,
impl<C> Sync for MetricSnapshotProgressReporter<C>where
C: Sync,
impl<C> Unpin for MetricSnapshotProgressReporter<C>where
C: Unpin,
impl<C> UnsafeUnpin for MetricSnapshotProgressReporter<C>where
C: UnsafeUnpin,
impl<C> UnwindSafe for MetricSnapshotProgressReporter<C>where
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