[−][src]Trait oauth2::AsyncRefreshTokenRequest
Asynchronous request to exchange a refresh token 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 and awaits a response.
Implementors
impl<'_, TE, TR, TT> AsyncRefreshTokenRequest<TE, TR, TT> for RefreshTokenRequest<'_, 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 awaits a response.