pub trait CredentialSource: Send {
// Required method
fn credentials(
&self,
) -> impl Future<Output = Result<Credentials, AuthError>> + Send;
}Expand description
Loads credentials for one account.
Required Methods§
Sourcefn credentials(
&self,
) -> impl Future<Output = Result<Credentials, AuthError>> + Send
fn credentials( &self, ) -> impl Future<Output = Result<Credentials, AuthError>> + Send
Reads the Apple ID and app-specific password.
§Errors
Returns AuthError::Unavailable when the source has no usable secret.
The error text never includes the secret.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".