pub trait Observer {
// Provided methods
fn planned(&mut self, _remaining: &[u64]) { ... }
fn started(&mut self, _subject: usize) { ... }
fn finished(&mut self, _subject: usize, _elapsed: Duration) { ... }
fn dropped(&mut self, _subject: usize) { ... }
}Expand description
Told about a run as it happens, to report progress.
Provided Methods§
Sourcefn planned(&mut self, _remaining: &[u64])
fn planned(&mut self, _remaining: &[u64])
Samples still to take per subject, warmups included. Called before the
first sample and again once runs = "auto" has settled its counts.
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".