pub enum BranchResult {
Single(String),
Multiple(Vec<String>),
Send(Vec<Send>),
End,
}Expand description
The result of evaluating a branch condition.
Branches can route to a single node, multiple nodes in parallel, dynamic Send targets, or end execution.
Variants§
Single(String)
Go to a single next node
Multiple(Vec<String>)
Go to multiple nodes in parallel
Send(Vec<Send>)
Dynamic routing with Send (map-reduce pattern)
End
End execution
Implementations§
Source§impl BranchResult
impl BranchResult
Sourcepub fn node_names(&self) -> Vec<String>
pub fn node_names(&self) -> Vec<String>
Get the list of node names to route to (if Single or Multiple)
Trait Implementations§
Source§impl Clone for BranchResult
impl Clone for BranchResult
Source§fn clone(&self) -> BranchResult
fn clone(&self) -> BranchResult
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 moreAuto Trait Implementations§
impl Freeze for BranchResult
impl RefUnwindSafe for BranchResult
impl Send for BranchResult
impl Sync for BranchResult
impl Unpin for BranchResult
impl UnsafeUnpin for BranchResult
impl UnwindSafe for BranchResult
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