[−][src]Trait oauth2::AsyncCodeTokenRequest
Asynchronous request to exchange an authorization code for an access token.
Required methods
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,
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.
Implementors
impl<'_, TE, TR, TT> AsyncCodeTokenRequest<TE, TR, TT> for CodeTokenRequest<'_, TE, TR, TT> where
TE: ErrorResponse + 'static,
TR: TokenResponse<TT> + Send,
TT: TokenType + Send,
[src]
TE: ErrorResponse + 'static,
TR: TokenResponse<TT> + Send,
TT: TokenType + Send,
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]
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 returns a Future.