pub trait StateSource:
Send
+ Sync
+ 'static {
// Required method
fn label(&self) -> Label;
}Expand description
A thin read-only handle to the operator’s current behavioural
label. The dispatcher consults this on every risk-increasing
command to compute the FrictionDecision.
Implementations:
StaticLabel— a fixed label; used in tests and when the engine has not yet reported one.- (future)
EngineLabel— polled fromGET /operator/state.
The trait is intentionally tiny so a future scheduler or CI
runner can plug in its own source without depending on the
engine-client crate.