[][src]Trait twitter_client::traits::HttpTryFuture

pub trait HttpTryFuture: Sealed {
    type Body: Body;
    type Error;
    pub fn try_poll(
        self: Pin<&mut Self>,
        cx: &mut Context<'_>
    ) -> Poll<Result<Response<Self::Body>, Self::Error>>; }

An HTTP response future.

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

Associated Types

Loading content...

Required methods

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

Loading content...

Implementors

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

type Body = B

type Error = F::Error

Loading content...