Type Alias HandlerFn

Source
pub type HandlerFn = Arc<dyn Fn(Request) -> Pin<Box<dyn Future<Output = Response> + Send + 'static>> + Send + Sync + 'static>;
Expand description

A boxed handler function type for dynamic dispatch

Aliased Typeยง

pub struct HandlerFn { /* private fields */ }