Struct rusoto_core::BaseAutoRefreshingProvider [] [src]

pub struct BaseAutoRefreshingProvider<P, T> { /* fields omitted */ }

Wrapper for ProvideAwsCredentials that caches the credentials returned by the wrapped provider. Each time the credentials are accessed, they are checked to see if they have expired, in which case they are retrieved from the wrapped provider again.

Methods

impl<P> BaseAutoRefreshingProvider<P, Mutex<AwsCredentials>> where
    P: ProvideAwsCredentials
[src]

[src]

Grab a RefreshingProvider that locks it's credentials with a Mutex so it's thread safe.

impl<P> BaseAutoRefreshingProvider<P, RefCell<AwsCredentials>> where
    P: ProvideAwsCredentials
[src]

[src]

Grab a provider that locks it's credentials with a RefCell. If you're looking for Thread Safety, take a look at AutoRefreshingProviderSync.

impl BaseAutoRefreshingProvider<ChainProvider, RefCell<AwsCredentials>>
[src]

[src]

Creates a new DefaultCredentials Provider. If you're looking for Thread Safety look at DefaultCredentialsProviderSync.

impl BaseAutoRefreshingProvider<ChainProvider, Mutex<AwsCredentials>>
[src]

[src]

Creates a new Thread Safe Default Credentials Provider.

Trait Implementations

impl<P> ProvideTimeoutableAwsCredentials for BaseAutoRefreshingProvider<P, RefCell<AwsCredentials>> where
    P: ProvideTimeoutableAwsCredentials
[src]

impl<P, T> Debug for BaseAutoRefreshingProvider<P, T> where
    P: Debug,
    T: Debug
[src]

[src]

Formats the value using the given formatter.

impl<P> ProvideAwsCredentials for BaseAutoRefreshingProvider<P, Mutex<AwsCredentials>> where
    P: ProvideAwsCredentials
[src]

[src]

Produce a new AwsCredentials.

impl<P> ProvideAwsCredentials for BaseAutoRefreshingProvider<P, RefCell<AwsCredentials>> where
    P: ProvideAwsCredentials
[src]

[src]

Produce a new AwsCredentials.