Expand description
JobHandler, the JobContext it receives and the FnHandler adapter.
Structs§
- FnHandler
- Blanket adapter so plain async closures can be handlers:
builder.handler(FnHandler::<SendEmail, _>::new(|job, ctx| async move { ... })). - JobContext
- Metadata about the current execution, available to handlers.
Traits§
- JobHandler
- Processes jobs of one type. Register with
crate::WorkerBuilder::handler.