Struct SequentialFlowBuilder

Source
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>

Source

pub fn new() -> Self

Creates new instance of SequentialFlowBuilder.

Source§

impl<Input, Output, Error, LastNodeOutput> SequentialFlowBuilder<Input, Output, Error, LastNodeOutput>
where Input: Send + 'static, Output: Send + 'static, Error: Send + 'static,

Source

pub fn add_node<NodeType, NodeInput, NodeOutput_, NodeError>( self, node: NodeType, ) -> SequentialFlowBuilder<Input, Output, Error, NodeOutput_>
where LastNodeOutput: Send + Sync + Into<NodeInput> + 'static, NodeInput: Send + Sync + 'static, NodeOutput_: Send + Sync + 'static, NodeError: Send + Sync + Into<Error> + 'static, NodeType: Node<NodeInput, NodeOutput<NodeOutput_>, NodeError> + Clone + Send + Sync + 'static,

Adds node to the sequence.

Source§

impl<Input, Output, Error, LastNodeOutput> SequentialFlowBuilder<Input, Output, Error, LastNodeOutput>
where Output: Send + Sync + 'static, LastNodeOutput: Into<Output> + Send + Sync + 'static,

Source

pub fn build(self) -> SequentialFlow<Input, Output, Error>

Finalizes the sequence so nodes can’t be added to it.

Trait Implementations§

Source§

impl<Input, Output, Error> Default for SequentialFlowBuilder<Input, Output, Error, Input>

Source§

fn default() -> Self

Returns the “default value” for a type. Read more

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>
where Input: Send, Output: Send, NextNodeInput: Send, Error: Send,

§

impl<Input, Output, Error, NextNodeInput> Sync for SequentialFlowBuilder<Input, Output, Error, NextNodeInput>
where Input: Sync, Output: Sync, NextNodeInput: Sync, Error: Sync,

§

impl<Input, Output, Error, NextNodeInput> Unpin for SequentialFlowBuilder<Input, Output, Error, NextNodeInput>
where Input: Unpin, Output: Unpin, NextNodeInput: Unpin, Error: Unpin,

§

impl<Input, Output, Error, NextNodeInput> UnwindSafe for SequentialFlowBuilder<Input, Output, Error, NextNodeInput>
where Input: UnwindSafe, Output: UnwindSafe, NextNodeInput: UnwindSafe, Error: UnwindSafe,

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.