pub struct Activity { /* private fields */ }
Expand description
Activity Node concrete type
Implementations§
Trait Implementations§
Source§impl Node for Activity
impl Node for Activity
Source§fn kind(&self) -> WorkflowNodeType
fn kind(&self) -> WorkflowNodeType
Return the type of node, this is used for easily locating the Start and End nodes
Source§fn position(&self) -> usize
fn position(&self) -> usize
A pointer to the current nodes position in the
Job.nodes
collectionSource§fn execute<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<Vec<Parameter>, NodeError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn execute<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<Vec<Parameter>, NodeError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
The instructions for how to execute each node
Auto Trait Implementations§
impl Freeze for Activity
impl !RefUnwindSafe for Activity
impl Send for Activity
impl Sync for Activity
impl Unpin for Activity
impl !UnwindSafe for Activity
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