Skip to main content

Handler

Trait Handler 

Source
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§

Source

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.

Implementors§