pub trait Runnable: Send + Sync {
    fn get_task_id(&self) -> TaskId;
    fn get_task_type(&self) -> TaskType;
    fn get_task_category(&self) -> TaskCategory;
    fn set_task_store<'life0, 'async_trait>(
        &'life0 mut self,
        task_store: Arc<dyn TaskStore>
    ) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>
    where
        'life0: 'async_trait,
        Self: 'async_trait
; fn run<'life0, 'async_trait>(
        &'life0 self
    ) -> Pin<Box<dyn Future<Output = BuckyResult<()>> + Send + 'async_trait>>
    where
        'life0: 'async_trait,
        Self: 'async_trait
; fn get_task_detail_status<'life0, 'async_trait>(
        &'life0 self
    ) -> Pin<Box<dyn Future<Output = BuckyResult<Vec<u8>>> + Send + 'async_trait>>
    where
        'life0: 'async_trait,
        Self: 'async_trait
; fn need_persist(&self) -> bool { ... } fn status_change(&self, _task_status: TaskStatus) { ... } }

Required Methods

Provided Methods

Implementors