pub trait Handler: Send + Sync + 'static {
    fn handle(&self, req: &mut Request) -> Result<Response>;
}
Expand description

Handlers are responsible for handling requests by creating Responses from Requests.

Required Methods§

Produce a Response from a Request, with the possibility of error.

Trait Implementations§

Produce a Response from a Request, with the possibility of error.

Implementations on Foreign Types§

Implementors§