Struct rusoto_credential::AutoRefreshingProvider[][src]

pub struct AutoRefreshingProvider<P: ProvideAwsCredentials + 'static> { /* 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.

In order to access the wrapped provider, for instance to set a timeout, the get_ref and get_mut methods can be used.

Methods

impl<P: ProvideAwsCredentials + 'static> AutoRefreshingProvider<P>
[src]

Create a new AutoRefreshingProvider around the provided base provider.

Get a shared reference to the wrapped provider.

Get a mutable reference to the wrapped provider.

This can be used to call set_timeout on the wrapped provider.

Trait Implementations

impl<P: Debug + ProvideAwsCredentials + 'static> Debug for AutoRefreshingProvider<P> where
    P::Future: Debug
[src]

Formats the value using the given formatter. Read more

impl<P: ProvideAwsCredentials + 'static> ProvideAwsCredentials for AutoRefreshingProvider<P>
[src]

The future response value.

Produce a new AwsCredentials future.

Auto Trait Implementations

impl<P> Send for AutoRefreshingProvider<P> where
    P: Send,
    <P as ProvideAwsCredentials>::Future: Future + Send

impl<P> Sync for AutoRefreshingProvider<P> where
    P: Sync,
    <P as ProvideAwsCredentials>::Future: Future + Send