Skip to main content

provider_fn

Function provider_fn 

Source
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.