pub struct SequentialFlowBuilder<Input, Output, Error, NextNodeInput> { /* private fields */ }Expand description
Builder for SequentialFlow.
Implementations§
Source§impl<Input, Output, Error> SequentialFlowBuilder<Input, Output, Error, Input>
impl<Input, Output, Error> SequentialFlowBuilder<Input, Output, Error, Input>
Sourcepub fn new() -> Self
pub fn new() -> Self
Creates new instance of SequentialFlowBuilder.
Source§impl<Input, Output, Error, LastNodeOutput> SequentialFlowBuilder<Input, Output, Error, LastNodeOutput>
impl<Input, Output, Error, LastNodeOutput> SequentialFlowBuilder<Input, Output, Error, LastNodeOutput>
Sourcepub fn add_node<NodeType, NodeInput, NodeOutput_, NodeError>(
self,
node: NodeType,
) -> SequentialFlowBuilder<Input, Output, Error, NodeOutput_>
pub fn add_node<NodeType, NodeInput, NodeOutput_, NodeError>( self, node: NodeType, ) -> SequentialFlowBuilder<Input, Output, Error, NodeOutput_>
Adds node to the sequence.
Source§impl<Input, Output, Error, LastNodeOutput> SequentialFlowBuilder<Input, Output, Error, LastNodeOutput>
impl<Input, Output, Error, LastNodeOutput> SequentialFlowBuilder<Input, Output, Error, LastNodeOutput>
Sourcepub fn build(self) -> SequentialFlow<Input, Output, Error>
pub fn build(self) -> SequentialFlow<Input, Output, Error>
Finalizes the sequence so nodes can’t be added to it.
Trait Implementations§
Auto Trait Implementations§
impl<Input, Output, Error, NextNodeInput> Freeze for SequentialFlowBuilder<Input, Output, Error, NextNodeInput>
impl<Input, Output, Error, NextNodeInput> RefUnwindSafe for SequentialFlowBuilder<Input, Output, Error, NextNodeInput>where
Input: RefUnwindSafe,
Output: RefUnwindSafe,
NextNodeInput: RefUnwindSafe,
Error: RefUnwindSafe,
impl<Input, Output, Error, NextNodeInput> Send for SequentialFlowBuilder<Input, Output, Error, NextNodeInput>
impl<Input, Output, Error, NextNodeInput> Sync for SequentialFlowBuilder<Input, Output, Error, NextNodeInput>
impl<Input, Output, Error, NextNodeInput> Unpin for SequentialFlowBuilder<Input, Output, Error, NextNodeInput>
impl<Input, Output, Error, NextNodeInput> UnwindSafe for SequentialFlowBuilder<Input, Output, Error, NextNodeInput>
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