pub trait ExecutionHandler<J>where
J: JobType,{
// Required method
fn execute<'life0, 'async_trait>(
&'life0 self,
context: ExecutionContext,
input: J,
) -> Pin<Box<dyn Future<Output = Result<<J as JobType>::Output, Report>> + Send + 'async_trait>>
where 'life0: 'async_trait,
Self: 'async_trait;
// Provided method
fn raw_handler(self) -> Arc<dyn ExecutionHandlerRaw + Sync + Send>
where Self: Sized + Send + Sync + 'static { ... }
}
Expand description
An execution handler for a specific job type.
Required Methods§
Provided Methods§
Sourcefn raw_handler(self) -> Arc<dyn ExecutionHandlerRaw + Sync + Send>
fn raw_handler(self) -> Arc<dyn ExecutionHandlerRaw + Sync + Send>
Return a raw handler to be used by an executor.