Type Definition rusoto_credential::DefaultCredentialsProviderSync
[−]
[src]
type DefaultCredentialsProviderSync = AutoRefreshingProviderSync<ChainProvider>;
The credentials provider you probably want to use if you do require Sync for your AWS services.
Wraps a ChainProvider
in an AutoRefreshingProvider
that uses a Mutex
to lock credentials in a
threadsafe manner.
The underlying ChainProvider
checks multiple sources for credentials, and the AutoRefreshingProvider
refreshes the credentials automatically when they expire. The Mutex
allows this caching to happen
in a Sync manner, incurring the overhead of a Mutex when credentials expire and need to be refreshed.
For a !Sync
implementation of the same, see DefaultCredentialsProvider
Methods
impl DefaultCredentialsProviderSync
[src]
pub fn new(
handle: &Handle
) -> Result<DefaultCredentialsProviderSync, CredentialsError>
[src]
handle: &Handle
) -> Result<DefaultCredentialsProviderSync, CredentialsError>
Creates a new Thread Safe Default Credentials Provider.