Struct rusoto_credential::BaseAutoRefreshingProvider
[−]
[src]
pub struct BaseAutoRefreshingProvider<P: ProvideAwsCredentials + 'static, 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.
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, T> BaseAutoRefreshingProvider<P, T>
[src]
pub fn get_ref(&self) -> &P
[src]
Get a shared reference to the wrapped provider.
pub fn get_mut(&mut self) -> &mut P
[src]
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, T: Debug> Debug for BaseAutoRefreshingProvider<P, T>
[src]
Auto Trait Implementations
impl<P, T> Send for BaseAutoRefreshingProvider<P, T> where
P: Send,
T: Send,
P: Send,
T: Send,
impl<P, T> Sync for BaseAutoRefreshingProvider<P, T> where
P: Sync,
T: Sync,
P: Sync,
T: Sync,