Type Definition gotham::handler::HandlerFuture
source · [−]pub type HandlerFuture = dyn Future<Item = (State, Response<Body>), Error = (State, HandlerError)> + Send;
Expand description
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.