pub struct JsonLoggerProgressReporter { /* private fields */ }Expand description
Progress reporter that emits JSON metric snapshots through log.
Implementations§
Source§impl JsonLoggerProgressReporter
impl JsonLoggerProgressReporter
Trait Implementations§
Source§impl Default for JsonLoggerProgressReporter
impl Default for JsonLoggerProgressReporter
Source§fn default() -> Self
fn default() -> Self
Creates a JSON logger reporter with the default target.
§Returns
A JSON logger-backed reporter at log::Level::Info.
Source§impl ProgressReporter for JsonLoggerProgressReporter
impl ProgressReporter for JsonLoggerProgressReporter
Source§fn report(&self, event: &ProgressEvent)
fn report(&self, event: &ProgressEvent)
Logs one JSON line for every metric snapshot in the event.
§Parameters
event- Progress event to log.
Auto Trait Implementations§
impl Freeze for JsonLoggerProgressReporter
impl !RefUnwindSafe for JsonLoggerProgressReporter
impl Send for JsonLoggerProgressReporter
impl Sync for JsonLoggerProgressReporter
impl Unpin for JsonLoggerProgressReporter
impl UnsafeUnpin for JsonLoggerProgressReporter
impl !UnwindSafe for JsonLoggerProgressReporter
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