obeli_sk_executor::worker

Trait Worker

source
pub trait Worker:
    Send
    + Sync
    + 'static {
    // Required methods
    fn run<'life0, 'async_trait>(
        &'life0 self,
        ctx: WorkerContext,
    ) -> Pin<Box<dyn Future<Output = WorkerResult> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn exported_functions(&self) -> &[FunctionMetadata];
    fn imported_functions(&self) -> &[FunctionMetadata];
}

Required Methods§

source

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

source

fn exported_functions(&self) -> &[FunctionMetadata]

source

fn imported_functions(&self) -> &[FunctionMetadata]

Implementors§