pub trait AutoSource:
Send
+ Sync
+ 'static {
// Required method
fn act(&self, action: AutoRequest) -> Result<AutoReply, SupervisorError>;
}Expand description
Dispatcher-side handle to the engine’s Auto-mode switch.
Production impl lives in the zero-engine-client-aware
adapter in crates/zero/src/main.rs. Tests use
MockAutoSource. When no adapter is attached the
dispatcher surfaces “auto mode unavailable” rather than
pretending — same pattern as every other optional source on
crate::DispatchContext.
Required Methods§
Sourcefn act(&self, action: AutoRequest) -> Result<AutoReply, SupervisorError>
fn act(&self, action: AutoRequest) -> Result<AutoReply, SupervisorError>
Issue an Auto-mode action.
§Errors
Same taxonomy as SupervisorError (transport, refusal,
unavailability) — re-using the type avoids a parallel
error enum for an isomorphic surface.