pub struct LifecycleNodeAdapter<LN, Context, Action>where
LN: LifecycleNode<Context, Action>,
Context: Send + Sync + 'static,
Action: ActionType + Send + Sync + 'static,{ /* private fields */ }Expand description
Adapter to convert a LifecycleNode to a standard Node
Implementations§
Source§impl<LN, Context, Action> LifecycleNodeAdapter<LN, Context, Action>where
LN: LifecycleNode<Context, Action>,
Context: Send + Sync + 'static,
Action: ActionType + Send + Sync + 'static,
impl<LN, Context, Action> LifecycleNodeAdapter<LN, Context, Action>where
LN: LifecycleNode<Context, Action>,
Context: Send + Sync + 'static,
Action: ActionType + Send + Sync + 'static,
Trait Implementations§
Source§impl<LN, Context, Action> Debug for LifecycleNodeAdapter<LN, Context, Action>where
LN: LifecycleNode<Context, Action> + Debug,
Context: Send + Sync + 'static,
Action: ActionType + Send + Sync + 'static,
impl<LN, Context, Action> Debug for LifecycleNodeAdapter<LN, Context, Action>where
LN: LifecycleNode<Context, Action> + Debug,
Context: Send + Sync + 'static,
Action: ActionType + Send + Sync + 'static,
Source§impl<LN, Context, Action> Node<Context, Action> for LifecycleNodeAdapter<LN, Context, Action>where
LN: LifecycleNode<Context, Action> + Send + Sync + 'static,
Context: Send + Sync + 'static,
Action: ActionType + Send + Sync + 'static,
LN::ExecOutput: Send + Sync + 'static,
impl<LN, Context, Action> Node<Context, Action> for LifecycleNodeAdapter<LN, Context, Action>where
LN: LifecycleNode<Context, Action> + Send + Sync + 'static,
Context: Send + Sync + 'static,
Action: ActionType + Send + Sync + 'static,
LN::ExecOutput: Send + Sync + 'static,
Source§type Output = <LN as LifecycleNode<Context, Action>>::ExecOutput
type Output = <LN as LifecycleNode<Context, Action>>::ExecOutput
The output type produced by this node
Source§fn process<'life0, 'life1, 'async_trait>(
&'life0 self,
ctx: &'life1 mut Context,
) -> Pin<Box<dyn Future<Output = Result<NodeOutcome<Self::Output, Action>, 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, Action>, FloxideError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Process the node asynchronously
Auto Trait Implementations§
impl<LN, Context, Action> Freeze for LifecycleNodeAdapter<LN, Context, Action>where
LN: Freeze,
impl<LN, Context, Action> RefUnwindSafe for LifecycleNodeAdapter<LN, Context, Action>
impl<LN, Context, Action> Send for LifecycleNodeAdapter<LN, Context, Action>
impl<LN, Context, Action> Sync for LifecycleNodeAdapter<LN, Context, Action>
impl<LN, Context, Action> Unpin for LifecycleNodeAdapter<LN, Context, Action>
impl<LN, Context, Action> UnwindSafe for LifecycleNodeAdapter<LN, Context, Action>
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