pub trait SolverTelemetry: Send + Sync {
// Required method
fn record(&self, evt: &SolveEvent<'_>);
}Expand description
Hook the solver chain calls at every attempt outcome.
Implementations MUST be cheap — the chain calls record from the
hot solve path. Slow implementations (network writes, blocking
I/O) should buffer or spawn so they don’t extend solve latency.
Required Methods§
Sourcefn record(&self, evt: &SolveEvent<'_>)
fn record(&self, evt: &SolveEvent<'_>)
Called once per solver attempt. The reference is short-lived; implementations that need to persist must clone.