pub type Handler = Arc<dyn Fn(Request) -> Pin<Box<dyn Future<Output = Response> + Send>> + Send + Sync>;Expand description
Type alias of async handler function for usage in middleware.
A Handler has the following signature:
async fn handler(Request) -> Response
Aliased Typeยง
pub struct Handler { /* private fields */ }