Skip to main content

ExecNext

Trait ExecNext 

Source
pub trait ExecNext: Send + Sync {
    // Required method
    fn run<'life0, 'life1, 'async_trait>(
        &'life0 self,
        input: OperatorInput,
        spec: &'life1 EnvironmentSpec,
    ) -> Pin<Box<dyn Future<Output = Result<OperatorOutput, EnvError>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait;
}
Expand description

The next layer in an exec middleware chain.

Required Methods§

Source

fn run<'life0, 'life1, 'async_trait>( &'life0 self, input: OperatorInput, spec: &'life1 EnvironmentSpec, ) -> Pin<Box<dyn Future<Output = Result<OperatorOutput, EnvError>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Forward the execution to the next layer.

Implementors§