Trait tower_web::routing::ResourceFuture [−][src]
pub trait ResourceFuture {
type Body;
fn poll_response(
&mut self,
request: &Request<()>
) -> Poll<Response<Self::Body>, Error>;
}A specialized response future returned by resources.
The ResourceFuture allows passing the HTTP response into the future when
polling.
Associated Types
type Body
HTTP response body type
Required Methods
fn poll_response(
&mut self,
request: &Request<()>
) -> Poll<Response<Self::Body>, Error>
&mut self,
request: &Request<()>
) -> Poll<Response<Self::Body>, Error>
Attempt to resolve the response future to a final value.