pub enum WorkflowEvent {
Start,
StageCompleted {
stage_id: StageId,
},
StageFailed {
stage_id: StageId,
error: String,
},
External {
event_type: String,
data: Vec<u8>,
},
Timeout {
stage_id: StageId,
},
Cancel,
SystemError {
error: String,
},
}Expand description
Events that can trigger workflow state transitions
Variants§
Start
Start the workflow
StageCompleted
Stage completed successfully
StageFailed
Stage failed with error
External
External event from another component
Timeout
Timeout occurred
Cancel
User-initiated cancellation
SystemError
System error
Trait Implementations§
Source§impl Clone for WorkflowEvent
impl Clone for WorkflowEvent
Source§fn clone(&self) -> WorkflowEvent
fn clone(&self) -> WorkflowEvent
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 WorkflowEvent
impl Debug for WorkflowEvent
Source§impl<'de> Deserialize<'de> for WorkflowEvent
impl<'de> Deserialize<'de> for WorkflowEvent
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
Source§impl Hash for WorkflowEvent
impl Hash for WorkflowEvent
Source§impl PartialEq for WorkflowEvent
impl PartialEq for WorkflowEvent
Source§impl Serialize for WorkflowEvent
impl Serialize for WorkflowEvent
impl Eq for WorkflowEvent
impl StructuralPartialEq for WorkflowEvent
Auto Trait Implementations§
impl Freeze for WorkflowEvent
impl RefUnwindSafe for WorkflowEvent
impl Send for WorkflowEvent
impl Sync for WorkflowEvent
impl Unpin for WorkflowEvent
impl UnwindSafe for WorkflowEvent
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.