Trait ajars_actix_web::actix_web::dev::Handler[][src]

pub trait Handler<T, R>: 'static + Clone where
    R: Future,
    <R as Future>::Output: Responder
{ fn call(&self, param: T) -> R; }
Expand description

A request handler is an async function that accepts zero or more parameters that can be extracted from a request (i.e., impl FromRequest) and returns a type that can be converted into an HttpResponse (that is, it impls the Responder trait).

If you got the error the trait Handler<_, _, _> is not implemented, then your function is not a valid handler. See Request Handlers for more information.

Required methods

Implementors