Skip to main content

Watcher

Trait Watcher 

Source
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§

Source

fn phase(&mut self, phase: Phase, item: &str, done: u64, total: u64)

done/total are bytes across the whole phase, not per package.

Source

fn log(&mut self, line: &str)

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§