Type Definition gotham::handler::HandlerFuture
[−]
[src]
type HandlerFuture = Future<Item = (State, Response), 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.