pub enum WorkflowState<K, Route> {
Ready,
Running {
steps: Vec<(K, WorkflowStepState)>,
reply_to: Route,
},
Succeeded {
reply_to: Route,
},
Failed {
step: K,
reply_to: Route,
},
Cancelled {
reply_to: Route,
},
}Expand description
Complete workflow phase sum.
Variants§
Ready
Validated definition has not started.
Running
At least one step remains incomplete.
Fields
§
steps: Vec<(K, WorkflowStepState)>Per-step states in definition order.
§
reply_to: RouteRecipient for every activation and terminal fact.
Succeeded
Every step completed successfully.
Fields
§
reply_to: RouteRetained result route for typed rejection of later stale input.
Failed
One active step failed; no further activations are possible.
Fields
§
step: KStep whose failure terminated the run.
§
reply_to: RouteRetained result route for typed rejection of later stale input.
Cancelled
Explicit cancellation terminated the run.
Fields
§
reply_to: RouteRetained result route for typed rejection of later stale input.
Auto Trait Implementations§
impl<K, Route> Freeze for WorkflowState<K, Route>
impl<K, Route> RefUnwindSafe for WorkflowState<K, Route>where
Route: RefUnwindSafe,
K: RefUnwindSafe,
impl<K, Route> Send for WorkflowState<K, Route>
impl<K, Route> Sync for WorkflowState<K, Route>
impl<K, Route> Unpin for WorkflowState<K, Route>
impl<K, Route> UnsafeUnpin for WorkflowState<K, Route>where
Route: UnsafeUnpin,
K: UnsafeUnpin,
impl<K, Route> UnwindSafe for WorkflowState<K, Route>where
Route: UnwindSafe,
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