Trait cloud_storage_lite::token_provider::TokenProvider [−][src]
A TokenProvider
is something that, when invoked, gives a valid, unexpired access token.
Required methods
#[must_use]fn get_token<'life0, 'async_trait>(
&'life0 self
) -> Pin<Box<dyn Future<Output = Result<Arc<Token>>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
[src]
&'life0 self
) -> Pin<Box<dyn Future<Output = Result<Arc<Token>>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
Returns new JWT-formatted access token.
Implementors
impl TokenProvider for OAuthTokenProvider
[src]
fn get_token<'life0, 'async_trait>(
&'life0 self
) -> Pin<Box<dyn Future<Output = Result<Arc<Token>>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
[src]
&'life0 self
) -> Pin<Box<dyn Future<Output = Result<Arc<Token>>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
impl TokenProvider for MockTokenProvider
[src]
A TokenProvider
is something that, when invoked, gives a valid, unexpired access token.
fn get_token<'life0, 'async_trait>(
&'life0 self
) -> Pin<Box<dyn Future<Output = Result<Arc<Token>>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
[src]
&'life0 self
) -> Pin<Box<dyn Future<Output = Result<Arc<Token>>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
Returns new JWT-formatted access token.