pub trait Observer {
// Provided methods
fn phase_started(&mut self, _phase: &Phase) { ... }
fn phase_finished(&mut self, _stats: &PhaseStats) { ... }
}Expand description
Runs on the caller at phase boundaries, never on the request path.
Provided Methods§
Sourcefn phase_started(&mut self, _phase: &Phase)
fn phase_started(&mut self, _phase: &Phase)
Workers are ready but no request from this phase has been sent.
Sourcefn phase_finished(&mut self, _stats: &PhaseStats)
fn phase_finished(&mut self, _stats: &PhaseStats)
Every admitted attempt has completed, failed or reached its timeout.
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".