[][src]Type Definition gotham::handler::HandlerFuture

type HandlerFuture = dyn Future<Item = (State, Response<Body>), Error = (State, HandlerError)> + Send;

A type alias for the trait objects returned by HandlerService.

When the Future resolves to an error, the (State, HandlerError) value is used to generate an appropriate HTTP error response.