Skip to main content

CredentialStore

Trait CredentialStore 

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

Source

fn is_supported(&self) -> bool

Check if the credential store service is supported on this system.

Source

fn status(&self) -> impl Future<Output = CredentialStatus>

Get the current service status.

Source

fn load( &self, auth_server: String, username: String, ) -> impl Future<Output = Result<String, CredentialError>>

Load password for the specific user.

Source

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

Implementors§

Source§

impl CredentialStore for veloren_voxygen_credentialstore::fake::SecretService

Source§

impl CredentialStore for veloren_voxygen_credentialstore::linux::SecretService