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

HTTP response body type

Required Methods

Attempt to resolve the response future to a final value.

Implementors