pub type TaskHandlerFn = Box<dyn Fn(DocketTask) -> Pin<Box<dyn Future<Output = Result<Value, DocketError>> + Send>> + Send + Sync>;
Task handler function type.
pub struct TaskHandlerFn(/* private fields */);