Skip to main content

ProgressReporter

Trait ProgressReporter 

Source
pub trait ProgressReporter: Send + Sync {
    // Required method
    fn begin(&self, label: &str, total: Option<u64>) -> Box<dyn ProgressHandle>;
}
Expand description

Factory for per-unit-of-work progress handles.

Implementations are shared across concurrent tasks, so this trait requires Send + Sync.

Required Methods§

Source

fn begin(&self, label: &str, total: Option<u64>) -> Box<dyn ProgressHandle>

Begins reporting a new unit of work.

total is the expected number of units (e.g. bytes); None indicates an indeterminate amount of work (render as a spinner).

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§