Skip to main content

camel_core/lifecycle/domain/
runtime_event.rs

1use serde::{Deserialize, Serialize};
2
3/// Internal runtime event contract used by domain/application/ports.
4///
5/// API-layer event types can map to this contract at crate boundaries.
6#[derive(Debug, Clone, PartialEq, Eq, Serialize, Deserialize)]
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}