pub fn new(provider: P) -> Result<AutoRefreshingProvider<P>, CredentialsError> {
        Ok(AutoRefreshingProvider {
            credentials_provider: provider,
            current_credentials: Arc::new(Mutex::new(None)),
        })
    }
Create a new `AutoRefreshingProvider` around the provided base provider.
rusoto/credential/src/lib.rs