Struct rusoto_credential::AutoRefreshingProvider [−][src]
pub struct AutoRefreshingProvider<P: ProvideAwsCredentials + 'static> { /* fields omitted */ }Expand description
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.
Implementations
Create a new AutoRefreshingProvider around the provided base provider.
Trait Implementations
impl<P: ProvideAwsCredentials + Send + Sync + 'static> ProvideAwsCredentials for AutoRefreshingProvider<P>
impl<P: ProvideAwsCredentials + Send + Sync + 'static> ProvideAwsCredentials for AutoRefreshingProvider<P>
fn credentials<'life0, 'async_trait>(
&'life0 self
) -> Pin<Box<dyn Future<Output = Result<AwsCredentials, CredentialsError>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
fn credentials<'life0, 'async_trait>(
&'life0 self
) -> Pin<Box<dyn Future<Output = Result<AwsCredentials, CredentialsError>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
Produce a new AwsCredentials future.
Auto Trait Implementations
impl<P> !RefUnwindSafe for AutoRefreshingProvider<P>
impl<P> Send for AutoRefreshingProvider<P> where
P: Send,
impl<P> Sync for AutoRefreshingProvider<P> where
P: Sync,
impl<P> Unpin for AutoRefreshingProvider<P> where
P: Unpin,
impl<P> !UnwindSafe for AutoRefreshingProvider<P>
Blanket Implementations
Mutably borrows from an owned value. Read more
Attaches the provided Subscriber to this type, returning a
WithDispatch wrapper. Read more
Attaches the current default Subscriber to this type, returning a
WithDispatch wrapper. Read more