pub trait RunnableTask: Sync + Send {
    // Required methods
    fn run<'life0, 'async_trait>(
        &'life0 self,
        context: Arc<TaskContext>
    ) -> Pin<Box<dyn Future<Output = TaskResult> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn register(&mut self, task: Task);
    fn get_task_info(&self) -> &Task;
}

Required Methods§

source

fn run<'life0, 'async_trait>( &'life0 self, context: Arc<TaskContext> ) -> Pin<Box<dyn Future<Output = TaskResult> + Send + 'async_trait>>where Self: 'async_trait, 'life0: 'async_trait,

source

fn register(&mut self, task: Task)

source

fn get_task_info(&self) -> &Task

Implementors§