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>,
},
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>,
},
}Variants§
RegisterRoute
StartRoute
StopRoute
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
Implementations§
Source§impl RuntimeCommand
impl RuntimeCommand
pub fn command_id(&self) -> &str
pub fn causation_id(&self) -> Option<&str>
Trait Implementations§
Source§impl Clone for RuntimeCommand
impl Clone for RuntimeCommand
Source§fn clone(&self) -> RuntimeCommand
fn clone(&self) -> RuntimeCommand
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for RuntimeCommand
impl Debug for RuntimeCommand
Source§impl PartialEq for RuntimeCommand
impl PartialEq for RuntimeCommand
impl Eq for RuntimeCommand
impl StructuralPartialEq for RuntimeCommand
Auto Trait Implementations§
impl Freeze for RuntimeCommand
impl RefUnwindSafe for RuntimeCommand
impl Send for RuntimeCommand
impl Sync for RuntimeCommand
impl Unpin for RuntimeCommand
impl UnsafeUnpin for RuntimeCommand
impl UnwindSafe for RuntimeCommand
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more