pub enum WorkflowOutcome<K> {
Started {
activated: Vec<K>,
},
Advanced {
completed: K,
activated: Vec<K>,
},
Succeeded {
completed: K,
},
Failed {
step: K,
},
Cancelled,
Rejected(WorkflowRejection<K>),
}Expand description
Activation and terminal facts emitted by Workflow.
Variants§
Started
A run began and these root steps became active in definition order.
Advanced
One completion committed and may have activated dependents.
Succeeded
The final completion committed.
Fields
§
completed: KFailed
One active step failed and terminated the run.
Fields
§
step: KCancelled
Explicit cancellation terminated the run.
Rejected(WorkflowRejection<K>)
Input was rejected without mutation.
Trait Implementations§
Source§impl<K: Clone> Clone for WorkflowOutcome<K>
impl<K: Clone> Clone for WorkflowOutcome<K>
Source§fn clone(&self) -> WorkflowOutcome<K>
fn clone(&self) -> WorkflowOutcome<K>
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<K: Debug> Debug for WorkflowOutcome<K>
impl<K: Debug> Debug for WorkflowOutcome<K>
Source§impl<K: PartialEq> PartialEq for WorkflowOutcome<K>
impl<K: PartialEq> PartialEq for WorkflowOutcome<K>
impl<K: Eq> Eq for WorkflowOutcome<K>
impl<K> StructuralPartialEq for WorkflowOutcome<K>
Auto Trait Implementations§
impl<K> Freeze for WorkflowOutcome<K>where
K: Freeze,
impl<K> RefUnwindSafe for WorkflowOutcome<K>where
K: RefUnwindSafe,
impl<K> Send for WorkflowOutcome<K>where
K: Send,
impl<K> Sync for WorkflowOutcome<K>where
K: Sync,
impl<K> Unpin for WorkflowOutcome<K>where
K: Unpin,
impl<K> UnsafeUnpin for WorkflowOutcome<K>where
K: UnsafeUnpin,
impl<K> UnwindSafe for WorkflowOutcome<K>where
K: UnwindSafe,
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