Trait obeli_sk_executor::worker::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) -> impl Iterator<Item = FunctionMetadata>;
fn imported_functions(&self) -> impl Iterator<Item = FunctionMetadata>;
}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) -> impl Iterator<Item = FunctionMetadata>
fn imported_functions(&self) -> impl Iterator<Item = FunctionMetadata>
Object Safety§
This trait is not object safe.