camel_core/lifecycle/domain/runtime_event.rs
1/// Internal runtime event contract used by domain/application/ports.
2///
3/// API-layer event types can map to this contract at crate boundaries.
4/// Serde lives in the adapter ring (`runtime_event_record`), not on the entity
5/// (ADR-0045 ยง4).
6#[derive(Debug, Clone, PartialEq, Eq)]
7pub enum RuntimeEvent {
8 RouteRegistered { route_id: String },
9 RouteStartRequested { route_id: String },
10 RouteStarted { route_id: String },
11 RouteFailed { route_id: String, error: String },
12 RouteStopped { route_id: String },
13 RouteSuspended { route_id: String },
14 RouteResumed { route_id: String },
15 RouteReloaded { route_id: String },
16 RouteRemoved { route_id: String },
17}