[][src]Trait tower_web::routing::ResourceFuture

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

Loading content...

Required methods

fn poll_response(
    &mut self,
    request: &Request<()>
) -> Poll<Response<Self::Body>, Error>

Attempt to resolve the response future to a final value.

Loading content...

Implementors

impl<T, B> ResourceFuture for T where
    T: Future<Item = Response<B>, Error = Error>, 
[src]

type Body = B

Loading content...