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::Output>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
// Provided method
fn raw_handler(self) -> Arc<dyn ExecutionHandlerRaw + Send + Sync>
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 + Send + Sync>
fn raw_handler(self) -> Arc<dyn ExecutionHandlerRaw + Send + Sync>
Return a raw handler to be used by an executor.