pub trait ProgressReporter: Send + Sync {
// Required methods
fn start(&self, total: u64, message: &str);
fn update(&self, current: u64, message: Option<&str>);
fn finish(&self, message: &str);
fn error(&self, message: &str);
fn warning(&self, message: &str);
fn is_enabled(&self) -> bool;
}
Expand description
Trait for progress reporting implementations
Required Methods§
Sourcefn is_enabled(&self) -> bool
fn is_enabled(&self) -> bool
Check if progress reporting is enabled