Skip to main content

HandlerFn

Type Alias HandlerFn 

Source
pub type HandlerFn = Box<dyn Fn(Request<Body>) -> BoxFuture<'static, Response<Body>> + Send + Sync + 'static>;
Expand description

Type-erased async handler. The dylib returns a future-producing closure.

Aliased Type§

pub struct HandlerFn(/* private fields */);