pub trait CredentialStore {
// Required methods
fn is_supported(&self) -> bool;
fn status(&self) -> impl Future<Output = CredentialStatus>;
fn load(
&self,
auth_server: String,
username: String,
) -> impl Future<Output = Result<String, CredentialError>>;
fn save(
&self,
credentials: Credentials,
) -> impl Future<Output = Result<(), CredentialError>>;
}Required Methods§
Sourcefn is_supported(&self) -> bool
fn is_supported(&self) -> bool
Check if the credential store service is supported on this system.
Sourcefn status(&self) -> impl Future<Output = CredentialStatus>
fn status(&self) -> impl Future<Output = CredentialStatus>
Get the current service status.
Sourcefn load(
&self,
auth_server: String,
username: String,
) -> impl Future<Output = Result<String, CredentialError>>
fn load( &self, auth_server: String, username: String, ) -> impl Future<Output = Result<String, CredentialError>>
Load password for the specific user.
Sourcefn save(
&self,
credentials: Credentials,
) -> impl Future<Output = Result<(), CredentialError>>
fn save( &self, credentials: Credentials, ) -> impl Future<Output = Result<(), CredentialError>>
Save credentials.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".