RunnableTask

Trait RunnableTask 

Source
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, version: ConnectorVersion);
    fn get_connector_info(&self) -> &ConnectorVersion;
}

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, version: ConnectorVersion)

Source

fn get_connector_info(&self) -> &ConnectorVersion

Implementors§