pub struct OutNode<TOut, TCollected, TNext>{ /* private fields */ }
Expand description
Struct representing a Source node.
Implementations§
source§impl<TOut, TCollected, TNext> OutNode<TOut, TCollected, TNext>
impl<TOut, TCollected, TNext> OutNode<TOut, TCollected, TNext>
sourcepub fn new(
handler: Box<dyn Out<TOut> + Send + Sync>,
next_node: TNext,
orchestrator: Arc<Orchestrator>
) -> OutNode<TOut, TCollected, TNext>
pub fn new( handler: Box<dyn Out<TOut> + Send + Sync>, next_node: TNext, orchestrator: Arc<Orchestrator> ) -> OutNode<TOut, TCollected, TNext>
Create a new output Node.
The handler
is the struct that implement the trait Out
and defines
the behavior of the node we’re creating.
next_node
contains the stage that follows the node.
Trait Implementations§
source§impl<TIn, TOut, TCollected, TNext> Node<TIn, TCollected> for OutNode<TOut, TCollected, TNext>
impl<TIn, TOut, TCollected, TNext> Node<TIn, TCollected> for OutNode<TOut, TCollected, TNext>
source§fn send(&self, _input: Message<TIn>, _rec_id: usize) -> Result<(), SenderError>
fn send(&self, _input: Message<TIn>, _rec_id: usize) -> Result<(), SenderError>
Send a message to the node.
source§fn collect(self) -> Option<TCollected>
fn collect(self) -> Option<TCollected>
Collect the final result stored in the last stage of the pipeline where is located this node.
source§fn get_num_of_replicas(&self) -> usize
fn get_num_of_replicas(&self) -> usize
Fetch the number of replicas of this node.
Auto Trait Implementations§
impl<TOut, TCollected, TNext> RefUnwindSafe for OutNode<TOut, TCollected, TNext>
impl<TOut, TCollected, TNext> Send for OutNode<TOut, TCollected, TNext>
impl<TOut, TCollected, TNext> Sync for OutNode<TOut, TCollected, TNext>
impl<TOut, TCollected, TNext> Unpin for OutNode<TOut, TCollected, TNext>
impl<TOut, TCollected, TNext> UnwindSafe for OutNode<TOut, TCollected, TNext>
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