pub enum CoordinationMessage {
CoordinationRequest {
workflow_id: WorkflowId,
requester: String,
participants: Vec<String>,
timeout: Duration,
},
CoordinationAccept {
workflow_id: WorkflowId,
participant: String,
capabilities: NodeCapabilities,
},
CoordinationReject {
workflow_id: WorkflowId,
participant: String,
reason: String,
},
WorkflowStart {
workflow_id: WorkflowId,
stage_assignments: HashMap<StageId, String>,
},
StageAssignment {
workflow_id: WorkflowId,
stage_id: StageId,
assigned_to: String,
},
StageStatusUpdate {
workflow_id: WorkflowId,
stage_id: StageId,
status: StageStatus,
metrics: StageMetrics,
},
SyncBarrier {
workflow_id: WorkflowId,
barrier_id: String,
participants: Vec<String>,
},
BarrierReady {
workflow_id: WorkflowId,
barrier_id: String,
participant: String,
},
WorkflowComplete {
workflow_id: WorkflowId,
result: WorkflowCoordinationResult,
},
Heartbeat {
workflow_id: WorkflowId,
participant: String,
timestamp_ms: u64,
},
ErrorNotification {
workflow_id: WorkflowId,
participant: String,
error: String,
},
}Expand description
Coordination message types
Variants§
CoordinationRequest
Request to coordinate a workflow
CoordinationAccept
Accept coordination request
CoordinationReject
Reject coordination request
WorkflowStart
Start workflow execution
StageAssignment
Stage assignment
StageStatusUpdate
Stage status update
SyncBarrier
Synchronization barrier
BarrierReady
Barrier ready signal
WorkflowComplete
Workflow completion notification
Heartbeat
Heartbeat message
ErrorNotification
Error notification
Trait Implementations§
Source§impl Clone for CoordinationMessage
impl Clone for CoordinationMessage
Source§fn clone(&self) -> CoordinationMessage
fn clone(&self) -> CoordinationMessage
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 CoordinationMessage
impl Debug for CoordinationMessage
Source§impl<'de> Deserialize<'de> for CoordinationMessage
impl<'de> Deserialize<'de> for CoordinationMessage
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for CoordinationMessage
impl RefUnwindSafe for CoordinationMessage
impl Send for CoordinationMessage
impl Sync for CoordinationMessage
impl Unpin for CoordinationMessage
impl UnwindSafe for CoordinationMessage
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