Trait aws_credential_types::provider::token::ProvideToken

source ·
pub trait ProvideToken:
    Send
    + Sync
    + Debug {
    // Required method
    fn provide_token<'a>(&'a self) -> ProvideToken<'a> 
       where Self: 'a;
}
Expand description

Access Token Provider

Required Methods§

source

fn provide_token<'a>(&'a self) -> ProvideToken<'a>
where Self: 'a,

Returns a future that provides an access token.

Trait Implementations§

source§

impl AsRef<dyn ProvideToken> for SharedTokenProvider

source§

fn as_ref(&self) -> &(dyn ProvideToken + 'static)

Converts this type into a shared reference of the (usually inferred) input type.

Implementors§

source§

impl ProvideToken for SharedTokenProvider

source§

impl ProvideToken for Token

source§

impl<'c, T, F> ProvideToken for ProvideTokenFn<'c, T>
where T: Fn() -> F + Send + Sync + 'c, F: Future<Output = Result> + Send + 'static,