Skip to main content

BoxedHandler

Type Alias BoxedHandler 

Source
pub type BoxedHandler<S> = Arc<dyn Fn(Request<Body>, Arc<S>) -> BoxedFuture + Send + Sync + 'static>;
Expand description

A type-erased handler: Arc<dyn Fn(Request<Body>, Arc<S>) -> BoxedFuture>.

Aliased Typeยง

pub struct BoxedHandler<S> { /* private fields */ }