pub enum EventKind {
Show 17 variants
OrchestrationStarted {
name: String,
version: String,
input: String,
parent_instance: Option<String>,
parent_id: Option<u64>,
},
OrchestrationCompleted {
output: String,
},
OrchestrationFailed {
details: ErrorDetails,
},
ActivityScheduled {
name: String,
input: String,
},
ActivityCompleted {
result: String,
},
ActivityFailed {
details: ErrorDetails,
},
TimerCreated {
fire_at_ms: u64,
},
TimerFired {
fire_at_ms: u64,
},
ExternalSubscribed {
name: String,
},
ExternalEvent {
name: String,
data: String,
},
OrchestrationChained {
name: String,
instance: String,
input: String,
},
SubOrchestrationScheduled {
name: String,
instance: String,
input: String,
},
SubOrchestrationCompleted {
result: String,
},
SubOrchestrationFailed {
details: ErrorDetails,
},
OrchestrationContinuedAsNew {
input: String,
},
OrchestrationCancelRequested {
reason: String,
},
SystemCall {
op: String,
value: String,
},
}Expand description
Event-specific payloads.
Common fields have been extracted to the Event struct:
- event_id: moved to Event.event_id
- source_event_id: moved to Event.source_event_id (
Option<u64>) - execution_id: moved to Event.execution_id (was in 4 variants)
Variants§
OrchestrationStarted
Orchestration instance was created and started by name with input. Version is required; parent linkage is present when this is a child orchestration.
Fields
OrchestrationCompleted
Orchestration completed with a final result.
OrchestrationFailed
Orchestration failed with a final error.
Fields
details: ErrorDetailsActivityScheduled
Activity was scheduled.
ActivityCompleted
Activity completed successfully with a result.
ActivityFailed
Activity failed with error details.
Fields
details: ErrorDetailsTimerCreated
Timer was created and will logically fire at fire_at_ms.
TimerFired
Timer fired at logical time fire_at_ms.
ExternalSubscribed
Subscription to an external event by name was recorded.
ExternalEvent
An external event was raised. Matched by name (no source_event_id).
OrchestrationChained
Fire-and-forget orchestration scheduling (detached).
SubOrchestrationScheduled
Sub-orchestration was scheduled with deterministic child instance id.
SubOrchestrationCompleted
Sub-orchestration completed and returned a result to the parent.
SubOrchestrationFailed
Sub-orchestration failed and returned error details to the parent.
Fields
details: ErrorDetailsOrchestrationContinuedAsNew
Orchestration continued as new with fresh input (terminal for this execution).
OrchestrationCancelRequested
Cancellation has been requested for the orchestration (terminal will follow deterministically).
SystemCall
System call executed synchronously during orchestration turn (single event for schedule+completion).
Trait Implementations§
Source§impl<'de> Deserialize<'de> for EventKind
impl<'de> Deserialize<'de> for EventKind
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>,
impl Eq for EventKind
impl StructuralPartialEq for EventKind
Auto Trait Implementations§
impl Freeze for EventKind
impl RefUnwindSafe for EventKind
impl Send for EventKind
impl Sync for EventKind
impl Unpin for EventKind
impl UnwindSafe for EventKind
Blanket Implementations§
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
clone_to_uninit)