Trait ProgressTracker
pub trait ProgressTracker: Send + Sync
Trait for defining stateful or stateless formatters
Required Methods
fn clone_box(&self) -> Box<dyn ProgressTracker>Creates a new instance of the progress tracker
fn tick(&mut self, state: &ProgressState, now: Instant)Notifies the progress tracker of a tick event
fn reset(&mut self, state: &ProgressState, now: Instant)Notifies the progress tracker of a reset event
fn write(&self, state: &ProgressState, w: &mut dyn Write)Provides access to the progress bar display buffer for custom messages
Implementors
impl<F> ProgressTracker for F where F: Fn(&ProgressState, &mut dyn Write) + Send + Sync + Clone + 'static,