#[non_exhaustive]pub enum RuntimeCommand {
RegisterRoute {
spec: CanonicalRouteSpec,
command_id: String,
causation_id: Option<String>,
},
StartRoute {
route_id: String,
command_id: String,
causation_id: Option<String>,
},
StopRoute {
route_id: String,
command_id: String,
causation_id: Option<String>,
stop_budget: Option<Duration>,
},
SuspendRoute {
route_id: String,
command_id: String,
causation_id: Option<String>,
},
ResumeRoute {
route_id: String,
command_id: String,
causation_id: Option<String>,
},
ReloadRoute {
route_id: String,
command_id: String,
causation_id: Option<String>,
},
FailRoute {
route_id: String,
error: String,
command_id: String,
causation_id: Option<String>,
},
RemoveRoute {
route_id: String,
command_id: String,
causation_id: Option<String>,
},
ReloadTlsCerts {
scheme: String,
host: String,
port: u16,
command_id: String,
causation_id: Option<String>,
},
ReloadTemplates {
route_id: String,
command_id: String,
causation_id: Option<String>,
},
}Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
RegisterRoute
StartRoute
StopRoute
Fields
stop_budget: Option<Duration>Effective graceful stop budget. None preserves the legacy
default shutdown bound (the route registry’s
DEFAULT_SHUTDOWN_TIMEOUT); Some(budget) bounds the stop with
the given budget. Future graceful-shutdown producers (CLI,
supervisor, orchestrators) MUST send Some(budget) explicitly —
None is reserved for the registry/reload semantics (legacy
default bound), not a default for graceful stops.
SuspendRoute
ResumeRoute
ReloadRoute
FailRoute
Internal lifecycle command emitted by runtime adapters when a route crashes at runtime.
This keeps aggregate/projection state aligned with controller-observed failures.
RemoveRoute
ReloadTlsCerts
ReloadTemplates
Reload template sources for a route (infrastructure command).
Intercepted in RuntimeBus::execute BEFORE journal recovery + dedup,
exactly like ReloadTlsCerts: it is idempotent, NOT journaled, and does
not mutate RouteStatus. Dispatches to
TemplateReloadRegistry::reload_route.