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