pub trait PulseEvaluator: Send {
// Required method
fn evaluate(&mut self, window: &MetricSet) -> Option<Outcome>;
}Expand description
Per-pulse evaluation of a running phase against the just-published
cadence window. Returns Some(outcome) to terminally stop the phase
with that disposition, or None to let it keep running.
Implementors read the phase’s live state however they need — the
window is the freshly-closed MetricSet that triggered this
pulse (a metrics reader may instead re-read the live feed, which
resolves to the same window the cadence feed just published).
Required Methods§
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".