pub struct SplitNode<I, O, F>{ /* private fields */ }Expand description
A node that splits its input into multiple outputs using the provided function.
Given an input I, the splitter function returns Vec<O>, and each element
is emitted via a Transition::NextAll to the workflow engine.
Implementations§
Trait Implementations§
Source§impl<C, I, O, F> Node<C> for SplitNode<I, O, F>
impl<C, I, O, F> Node<C> for SplitNode<I, O, F>
Source§fn process<'life0, 'life1, 'async_trait>(
&'life0 self,
_ctx: &'life1 C,
input: I,
) -> Pin<Box<dyn Future<Output = Result<Transition<O>, FloxideError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn process<'life0, 'life1, 'async_trait>(
&'life0 self,
_ctx: &'life1 C,
input: I,
) -> Pin<Box<dyn Future<Output = Result<Transition<O>, FloxideError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Process an input value, producing multiple outputs via NextAll transition.
Auto Trait Implementations§
impl<I, O, F> Freeze for SplitNode<I, O, F>where
F: Freeze,
impl<I, O, F> RefUnwindSafe for SplitNode<I, O, F>
impl<I, O, F> Send for SplitNode<I, O, F>
impl<I, O, F> Sync for SplitNode<I, O, F>
impl<I, O, F> Unpin for SplitNode<I, O, F>
impl<I, O, F> UnwindSafe for SplitNode<I, O, F>
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