HandlerFn

Type Alias HandlerFn 

Source
pub type HandlerFn = fn(String) -> BoxFuture<'static, Result<Box<dyn Job>>>;
Expand description

Type alias for job handler functions. These handlers take a serialized JSON String and return a boxed Job trait object.