Skip to main content

Handler

Type Alias Handler 

Source
pub type Handler = Box<dyn Fn(Req, Params) -> BoxFuture<'static, Reply> + Send + Sync>;
Expand description

Represents a route handler. Receives the Request and Path Params, returning an async Response.

Aliased Typeยง

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