Skip to main content

Observer

Trait Observer 

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

Source

fn phase_started(&mut self, _phase: &Phase)

Workers are ready but no request from this phase has been sent.

Source

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".

Implementations on Foreign Types§

Source§

impl Observer for ()

Implementors§