Runner

Trait Runner 

Source
pub trait Runner: Send + Sync {
    // Required methods
    fn capability(&self) -> &'static str;
    fn run<'life0, 'life1, 'async_trait>(
        &'life0 self,
        ctx: TaskCtx<'life1>,
    ) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait;
}
Expand description

Runner entrypoint.

Required Methods§

Source

fn capability(&self) -> &'static str

Capability string this runner implements (e.g., “/reconstruction/legacy/v1”).

Source

fn run<'life0, 'life1, 'async_trait>( &'life0 self, ctx: TaskCtx<'life1>, ) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Execute the task.

Implementors§