[][src]Trait oauth2::AsyncClientCredentialsTokenRequest

pub trait AsyncClientCredentialsTokenRequest<TE, TR, TT> where
    TE: ErrorResponse + 'static,
    TR: TokenResponse<TT> + Send,
    TT: TokenType + Send
{ #[must_use] fn request_async<'async_trait, C, F, RE>(
        self,
        http_client: C
    ) -> Pin<Box<dyn Future<Output = Result<TR, RequestTokenError<RE, TE>>> + Send + 'async_trait>>
    where
        C: FnOnce(HttpRequest) -> F + Send,
        F: Future<Output = Result<HttpResponse, RE>> + Send,
        RE: Fail,
        C: 'async_trait,
        F: 'async_trait,
        RE: 'async_trait,
        Self: 'async_trait
; }

Asynchronous request to exchange client credentials for an access token.

Required methods

#[must_use]fn request_async<'async_trait, C, F, RE>(
    self,
    http_client: C
) -> Pin<Box<dyn Future<Output = Result<TR, RequestTokenError<RE, TE>>> + Send + 'async_trait>> where
    C: FnOnce(HttpRequest) -> F + Send,
    F: Future<Output = Result<HttpResponse, RE>> + Send,
    RE: Fail,
    C: 'async_trait,
    F: 'async_trait,
    RE: 'async_trait,
    Self: 'async_trait, 

Asynchronously sends the request to the authorization server and awaits a response.

Loading content...

Implementors

impl<'_, TE, TR, TT> AsyncClientCredentialsTokenRequest<TE, TR, TT> for ClientCredentialsTokenRequest<'_, TE, TR, TT> where
    TE: ErrorResponse + 'static,
    TR: TokenResponse<TT> + Send,
    TT: TokenType + Send
[src]

fn request_async<'async_trait, C, F, RE>(
    self,
    http_client: C
) -> Pin<Box<dyn Future<Output = Result<TR, RequestTokenError<RE, TE>>> + Send + 'async_trait>> where
    C: FnOnce(HttpRequest) -> F + Send,
    F: Future<Output = Result<HttpResponse, RE>> + Send,
    RE: Fail,
    C: 'async_trait,
    F: 'async_trait,
    RE: 'async_trait,
    Self: 'async_trait, 
[src]

Asynchronously sends the request to the authorization server and awaits a response.

Loading content...