Work

Trait Work 

Source
pub trait Work<Ctx, T>: Send + Sync
where Ctx: Clone + Send + Sync + 'static, T: DeserializeOwned + Send + Sync,
{ // Required method fn run<'life0, 'async_trait>( &'life0 self, ctx: WorkerContext<Ctx>, item: T, ) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>> where Self: 'async_trait, 'life0: 'async_trait; }

Required Methods§

Source

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

Implementors§