pub fn request_future<C, F, RE>(
        self,
        http_client: C,
    ) -> impl Future<Item = TR, Error = RequestTokenError<RE, TE>>
    where
        C: FnOnce(HttpRequest) -> F,
        F: Future<Item = HttpResponse, Error = RE>,
        RE: Fail,
    {
        self.prepare_request()
            .into_future()
            .and_then(|http_request| http_client(http_request).map_err(RequestTokenError::Request))
            .and_then(|http_response| token_response(http_response).into_future())
    }
///
/// Asynchronously sends the request to the authorization server and returns a Future.
///
Asynchronously sends the request to the authorization server and returns a Future.
Asynchronously sends the request to the authorization server and returns a Future .
pub fn request_future<C, F, RE>(
        self,
        http_client: C,
    ) -> impl Future<Item = TR, Error = RequestTokenError<RE, TE>>
    where
        C: FnOnce(HttpRequest) -> F,
        F: Future<Item = HttpResponse, Error = RE>,
        RE: Fail,
    {
        self.prepare_request()
            .into_future()
            .and_then(|http_request| http_client(http_request).map_err(RequestTokenError::Request))
            .and_then(|http_response| token_response(http_response).into_future())
    }
pub fn request_future < C , F , RE > ( self , http_client : C , ) -> impl Future < Item = TR , Error = RequestTokenError < RE , TE > > where C : FnOnce ( HttpRequest ) -> F , F : Future < Item = HttpResponse , Error = RE > , RE : Fail , { self . prepare_request ( ) . into_future ( ) . and_then ( | http_request | http_client ( http_request ) . map_err ( RequestTokenError :: Request ) ) . and_then ( | http_response | token_response ( http_response ) . into_future ( ) ) }
Asynchronously sends the request to the authorization server and returns a Future.
Asynchronously sends the request to the authorization server and returns a Future .
self
http_client
C
self
http_client
C