pub enum Transition<Output> {
Next(Output),
NextAll(Vec<Output>),
Hold,
Abort(FloxideError),
}Expand description
Transition result of a node: Next->next node, Abort->error Transition result of a node.
Variants§
Next(Output)
Emit a single output to successors.
NextAll(Vec<Output>)
Emit multiple outputs to successors (split / fan-out).
Hold
Hold this work item; do not emit any outputs until a condition is met.
Abort(FloxideError)
Abort the workflow with an error.
Auto Trait Implementations§
impl<Output> Freeze for Transition<Output>where
Output: Freeze,
impl<Output> RefUnwindSafe for Transition<Output>where
Output: RefUnwindSafe,
impl<Output> Send for Transition<Output>where
Output: Send,
impl<Output> Sync for Transition<Output>where
Output: Sync,
impl<Output> Unpin for Transition<Output>where
Output: Unpin,
impl<Output> UnwindSafe for Transition<Output>where
Output: 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