pub enum WorkflowBusEvent {
Show 13 variants
WorkflowCreated {
workflow_id: String,
workflow_type: String,
task_queue: String,
status: String,
},
WorkflowStatusChanged {
workflow_id: String,
old_status: String,
new_status: String,
task_queue: String,
},
WorkflowNeedsDispatch {
workflow_id: String,
task_queue: String,
},
WorkflowStarted {
workflow_id: String,
},
WorkflowRunning {
workflow_id: String,
},
WorkflowCompleted {
workflow_id: String,
},
WorkflowFailed {
workflow_id: String,
},
WorkflowCancelled {
workflow_id: String,
},
WorkflowTerminated {
workflow_id: String,
},
ActivityInserted {
activity_id: i64,
workflow_id: String,
task_queue: String,
name: String,
},
ActivityStatusChanged {
activity_id: i64,
workflow_id: String,
old_status: String,
new_status: String,
},
SignalReceived {
workflow_id: String,
signal_name: String,
},
TimerFired {
workflow_id: String,
seq: i32,
},
}Expand description
Every event kind the workflow subsystem emits. Each variant
serialises to a workflow_* / activity_* kind string + a JSON
payload. Fields are chosen to be small and self-contained; we never
dump whole rows.
Variants§
WorkflowCreated
WorkflowStatusChanged
WorkflowNeedsDispatch
WorkflowStarted
WorkflowRunning
WorkflowCompleted
WorkflowFailed
WorkflowCancelled
WorkflowTerminated
ActivityInserted
ActivityStatusChanged
SignalReceived
TimerFired
Implementations§
Trait Implementations§
Source§impl Clone for WorkflowBusEvent
impl Clone for WorkflowBusEvent
Source§fn clone(&self) -> WorkflowBusEvent
fn clone(&self) -> WorkflowBusEvent
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 WorkflowBusEvent
impl Debug for WorkflowBusEvent
Source§impl<'de> Deserialize<'de> for WorkflowBusEvent
impl<'de> Deserialize<'de> for WorkflowBusEvent
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 WorkflowBusEvent
impl RefUnwindSafe for WorkflowBusEvent
impl Send for WorkflowBusEvent
impl Sync for WorkflowBusEvent
impl Unpin for WorkflowBusEvent
impl UnsafeUnpin for WorkflowBusEvent
impl UnwindSafe for WorkflowBusEvent
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more