pub fn provider_fn<F>(f: F) -> FnProvider<F>Expand description
Adapt a synchronous closure into a CredentialProvider. The closure runs at
request time and returns the credential (or None to defer to ambient auth).
For async sources (a network vault), implement CredentialProvider directly.