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

pub trait Handler<S>: 'static {
    type Result: Responder;
    fn handle(&mut self, req: HttpRequest<S>) -> Self::Result;
}

Trait defines object that could be regestered as route handler

Associated Types

The type of value that handler will return.

Required Methods

Handle request

Implementors