pub struct NestedTimerWorkflow<Context, Action>{ /* private fields */ }Expand description
A nested timer workflow that can be used as a standard node
Implementations§
Source§impl<Context, Action> NestedTimerWorkflow<Context, Action>
impl<Context, Action> NestedTimerWorkflow<Context, Action>
Sourcepub fn new(
workflow: Arc<TimerWorkflow<Context, Action>>,
complete_action: Action,
) -> Self
pub fn new( workflow: Arc<TimerWorkflow<Context, Action>>, complete_action: Action, ) -> Self
Create a new nested timer workflow
Trait Implementations§
Source§impl<Context, Action> Node<Context, Action> for NestedTimerWorkflow<Context, Action>
impl<Context, Action> Node<Context, Action> for NestedTimerWorkflow<Context, Action>
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<Context, Action> Freeze for NestedTimerWorkflow<Context, Action>where
Action: Freeze,
impl<Context, Action> !RefUnwindSafe for NestedTimerWorkflow<Context, Action>
impl<Context, Action> Send for NestedTimerWorkflow<Context, Action>
impl<Context, Action> Sync for NestedTimerWorkflow<Context, Action>
impl<Context, Action> Unpin for NestedTimerWorkflow<Context, Action>
impl<Context, Action> !UnwindSafe for NestedTimerWorkflow<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