Trait ProgressTracker

trait ProgressTracker: Send + Sync

Trait for defining stateful or stateless formatters

Required Methods

fn clone_box(self: &Self) -> Box<dyn ProgressTracker>

Creates a new instance of the progress tracker

fn tick(self: &mut Self, state: &ProgressState, now: Instant)

Notifies the progress tracker of a tick event

fn reset(self: &mut Self, state: &ProgressState, now: Instant)

Notifies the progress tracker of a reset event

fn write(self: &Self, state: &ProgressState, w: &mut dyn fmt::Write)

Provides access to the progress bar display buffer for custom messages

Implementors