Trait cala_server::job::JobRunner

source ·
pub trait JobRunner: Send + Sync + 'static {
    // Required method
    fn run<'life0, 'async_trait>(
        &'life0 mut self,
        current_job: CurrentJob,
    ) -> Pin<Box<dyn Future<Output = Result<JobCompletion, Box<dyn Error>>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
}

Required Methods§

source

fn run<'life0, 'async_trait>( &'life0 mut self, current_job: CurrentJob, ) -> Pin<Box<dyn Future<Output = Result<JobCompletion, Box<dyn Error>>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Implementors§