pub struct ProvideCredentialsFn<'c, T> { /* private fields */ }
Expand description
A ProvideCredentials
implemented by a closure.
See provide_credentials_fn
for more details.
Trait Implementations§
source§impl<'c, T: Clone> Clone for ProvideCredentialsFn<'c, T>
impl<'c, T: Clone> Clone for ProvideCredentialsFn<'c, T>
source§fn clone(&self) -> ProvideCredentialsFn<'c, T>
fn clone(&self) -> ProvideCredentialsFn<'c, T>
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl<T> Debug for ProvideCredentialsFn<'_, T>
impl<T> Debug for ProvideCredentialsFn<'_, T>
source§impl<'c, T, F> ProvideCredentials for ProvideCredentialsFn<'c, T>where
T: Fn() -> F + Send + Sync + 'c,
F: Future<Output = Result> + Send + 'static,
impl<'c, T, F> ProvideCredentials for ProvideCredentialsFn<'c, T>where T: Fn() -> F + Send + Sync + 'c, F: Future<Output = Result> + Send + 'static,
source§fn provide_credentials<'a>(&'a self) -> ProvideCredentials<'a> ⓘwhere
Self: 'a,
fn provide_credentials<'a>(&'a self) -> ProvideCredentials<'a> ⓘwhere Self: 'a,
Returns a future that provides credentials.