pub trait Watcher {
// Required methods
fn phase(&mut self, phase: Phase, item: &str, done: u64, total: u64);
fn log(&mut self, line: &str);
}Expand description
Where a run is, and what happened, for the progress bar and the log.
Required Methods§
Sourcefn phase(&mut self, phase: Phase, item: &str, done: u64, total: u64)
fn phase(&mut self, phase: Phase, item: &str, done: u64, total: u64)
done/total are bytes across the whole phase, not per package.
fn log(&mut self, line: &str)
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".