pub trait CredentialSource:
WasmCompatSend
+ WasmCompatSync
+ 'static {
// Required method
fn auth_context(
&self,
http: &DynHttpClient,
) -> impl Future<Output = Result<AuthContext, AuthError>> + WasmCompatSend;
}Expand description
Where a SignedInModel reads its credential on every request.
Required Methods§
Sourcefn auth_context(
&self,
http: &DynHttpClient,
) -> impl Future<Output = Result<AuthContext, AuthError>> + WasmCompatSend
fn auth_context( &self, http: &DynHttpClient, ) -> impl Future<Output = Result<AuthContext, AuthError>> + WasmCompatSend
The credential to send with now, refreshed through http when it
has expired.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".