aws_credential_types::provider::token

Trait 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,