pub trait Handler: Send + Sync {
// Required method
fn execute<'life0, 'life1, 'life2, 'life3, 'life4, 'async_trait>(
&'life0 self,
node: &'life1 PipelineNode,
context: &'life2 Context,
graph: &'life3 PipelineGraph,
run_dir: &'life4 RunDirectory,
) -> Pin<Box<dyn Future<Output = Result<Outcome>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait,
'life4: 'async_trait;
}Expand description
Trait for node handlers that execute pipeline stages.
Required Methods§
Sourcefn execute<'life0, 'life1, 'life2, 'life3, 'life4, 'async_trait>(
&'life0 self,
node: &'life1 PipelineNode,
context: &'life2 Context,
graph: &'life3 PipelineGraph,
run_dir: &'life4 RunDirectory,
) -> Pin<Box<dyn Future<Output = Result<Outcome>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait,
'life4: 'async_trait,
fn execute<'life0, 'life1, 'life2, 'life3, 'life4, 'async_trait>(
&'life0 self,
node: &'life1 PipelineNode,
context: &'life2 Context,
graph: &'life3 PipelineGraph,
run_dir: &'life4 RunDirectory,
) -> Pin<Box<dyn Future<Output = Result<Outcome>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait,
'life4: 'async_trait,
Execute this handler for the given node.