HttpTryFuture

Trait HttpTryFuture 

Source
pub trait HttpTryFuture: Sealed {
    type Body: Body;
    type Error;

    // Required method
    fn try_poll(
        self: Pin<&mut Self>,
        cx: &mut Context<'_>,
    ) -> Poll<Result<Response<Self::Body>, Self::Error>>;
}
Expand description

An HTTP response future.

This is just an alias for Future introduced to reduce the number of type parameters.

Required Associated Types§

Required Methods§

Source

fn try_poll( self: Pin<&mut Self>, cx: &mut Context<'_>, ) -> Poll<Result<Response<Self::Body>, Self::Error>>

Implementors§

Source§

impl<F, B> HttpTryFuture for F
where F: TryFuture<Ok = Response<B>>, B: Body,

Source§

type Body = B

Source§

type Error = <F as TryFuture>::Error