pub trait Observer {
// Provided methods
fn progress(&mut self, _done: usize, _total: usize) { ... }
fn output(&mut self, _name: &'static str, _volume: VolumeRef<'_>) { ... }
}Expand description
Receives a stage’s progress and its intermediate outputs as they are produced.
Both methods default to doing nothing, so an implementation overrides only what it uses.
Provided Methods§
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".
Implementations on Foreign Types§
impl Observer for ()
Ignores progress and outputs.