pub struct CompositeNode<C: Context, W> { /* private fields */ }Expand description
CompositeNode wraps a Workflow so it implements Node
Implementations§
Source§impl<C: Context, W> CompositeNode<C, W>
impl<C: Context, W> CompositeNode<C, W>
pub fn new(workflow: W, ctx: &WorkflowCtx<C>) -> Self
Trait Implementations§
Source§impl<C: Clone + Context, W: Clone> Clone for CompositeNode<C, W>
impl<C: Clone + Context, W: Clone> Clone for CompositeNode<C, W>
Source§fn clone(&self) -> CompositeNode<C, W>
fn clone(&self) -> CompositeNode<C, W>
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<C, W> Node<C> for CompositeNode<C, W>
impl<C, W> Node<C> for CompositeNode<C, W>
Source§fn process<'life0, 'life1, 'async_trait>(
&'life0 self,
ctx: &'life1 C,
input: Self::Input,
) -> Pin<Box<dyn Future<Output = Result<Transition<Self::Output>, 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: Self::Input,
) -> Pin<Box<dyn Future<Output = Result<Transition<Self::Output>, FloxideError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Process an input value within the given context, producing a transition
Auto Trait Implementations§
impl<C, W> Freeze for CompositeNode<C, W>
impl<C, W> RefUnwindSafe for CompositeNode<C, W>where
W: RefUnwindSafe,
C: RefUnwindSafe,
impl<C, W> Send for CompositeNode<C, W>where
W: Send,
impl<C, W> Sync for CompositeNode<C, W>where
W: Sync,
impl<C, W> Unpin for CompositeNode<C, W>
impl<C, W> UnwindSafe for CompositeNode<C, W>where
W: UnwindSafe,
C: UnwindSafe,
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