pub type Handler<S> = Arc<dyn Fn(Request<BoxBody>, Arc<S>) -> Pin<Box<dyn Future<Output = Result<Response<Full<Bytes>>, BoxError>> + Send + 'static>> + Send + Sync + 'static>;Expand description
Shared handler type used by the router.
Aliased Typeยง
pub struct Handler<S> { /* private fields */ }