Blueprint SDK Job Router
This crate provides the [Router
], which is used to route jobs to different handlers based on their JobId
.
Usage
use Router;
use JobWithoutContextExt;
use ;
// Define a job function. See [`Job`] for more details
async
// Give the job some kind of ID. Many types can be converted
// into a [`JobId`]. See [`JobId`] for more details
const MY_JOB_ID: u32 = 0;
let router = new.route;
# let _: Router = router;