pub struct NestedEventDrivenWorkflow<E, C, A>{ /* private fields */ }Expand description
A nested event-driven workflow that can be used in a standard workflow
Implementations§
Source§impl<E, C, A> NestedEventDrivenWorkflow<E, C, A>
impl<E, C, A> NestedEventDrivenWorkflow<E, C, A>
Sourcepub fn new(
workflow: Arc<EventDrivenWorkflow<E, C, A>>,
complete_action: A,
timeout_action: A,
) -> Self
pub fn new( workflow: Arc<EventDrivenWorkflow<E, C, A>>, complete_action: A, timeout_action: A, ) -> Self
Create a new nested workflow without a timeout
Sourcepub fn with_timeout(
workflow: Arc<EventDrivenWorkflow<E, C, A>>,
timeout: Duration,
complete_action: A,
timeout_action: A,
) -> Self
pub fn with_timeout( workflow: Arc<EventDrivenWorkflow<E, C, A>>, timeout: Duration, complete_action: A, timeout_action: A, ) -> Self
Create a new nested workflow with a timeout
Trait Implementations§
Source§impl<E, C, A> Node<C, A> for NestedEventDrivenWorkflow<E, C, A>
impl<E, C, A> Node<C, A> for NestedEventDrivenWorkflow<E, C, A>
Source§fn process<'life0, 'life1, 'async_trait>(
&'life0 self,
ctx: &'life1 mut C,
) -> 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 C,
) -> 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<E, C, A> Freeze for NestedEventDrivenWorkflow<E, C, A>where
A: Freeze,
impl<E, C, A> !RefUnwindSafe for NestedEventDrivenWorkflow<E, C, A>
impl<E, C, A> Send for NestedEventDrivenWorkflow<E, C, A>
impl<E, C, A> Sync for NestedEventDrivenWorkflow<E, C, A>
impl<E, C, A> Unpin for NestedEventDrivenWorkflow<E, C, A>where
A: Unpin,
impl<E, C, A> UnsafeUnpin for NestedEventDrivenWorkflow<E, C, A>where
A: UnsafeUnpin,
impl<E, C, A> !UnwindSafe for NestedEventDrivenWorkflow<E, C, 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