pub struct BatchNode<Context, ItemType, A = DefaultAction>where
Context: BatchContext<ItemType> + Send + Sync + 'static,
ItemType: Clone + Send + Sync + 'static,
A: ActionType + Clone + Send + Sync + 'static,{ /* private fields */ }Expand description
A node that processes a batch of items in parallel
Implementations§
Trait Implementations§
Source§impl<Context, ItemType, A> Debug for BatchNode<Context, ItemType, A>where
Context: BatchContext<ItemType> + Send + Sync + 'static,
ItemType: Clone + Send + Sync + 'static,
A: ActionType + Send + Sync + 'static,
impl<Context, ItemType, A> Debug for BatchNode<Context, ItemType, A>where
Context: BatchContext<ItemType> + Send + Sync + 'static,
ItemType: Clone + Send + Sync + 'static,
A: ActionType + Send + Sync + 'static,
Source§impl<Context, ItemType, A> Node<Context, A> for BatchNode<Context, ItemType, A>
impl<Context, ItemType, A> Node<Context, A> for BatchNode<Context, ItemType, A>
Source§fn process<'life0, 'life1, 'async_trait>(
&'life0 self,
ctx: &'life1 mut Context,
) -> Pin<Box<dyn Future<Output = Result<NodeOutcome<Self::Output, A>, FloxideError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn process<'life0, 'life1, 'async_trait>(
&'life0 self,
ctx: &'life1 mut Context,
) -> Pin<Box<dyn Future<Output = Result<NodeOutcome<Self::Output, A>, FloxideError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Process the node asynchronously
Auto Trait Implementations§
impl<Context, ItemType, A> Freeze for BatchNode<Context, ItemType, A>
impl<Context, ItemType, A = DefaultAction> !RefUnwindSafe for BatchNode<Context, ItemType, A>
impl<Context, ItemType, A> Send for BatchNode<Context, ItemType, A>
impl<Context, ItemType, A> Sync for BatchNode<Context, ItemType, A>
impl<Context, ItemType, A> Unpin for BatchNode<Context, ItemType, A>
impl<Context, ItemType, A = DefaultAction> !UnwindSafe for BatchNode<Context, ItemType, A>
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