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.
Trait Implementations§
source§impl IntoHandlerFuture for Box<HandlerFuture>
impl IntoHandlerFuture for Box<HandlerFuture>
source§fn into_handler_future(self) -> Box<HandlerFuture>
fn into_handler_future(self) -> Box<HandlerFuture>
Converts this value into a boxed future resolving to a state and response.