Skip to main content

Credstore

Trait Credstore 

Source
pub trait Credstore: Send + Sync {
    // Required methods
    fn get(&self, account: &str) -> Result<Option<String>, CredstoreError>;
    fn set(&self, account: &str, value: &str) -> Result<(), CredstoreError>;
    fn delete(&self, account: &str) -> Result<(), CredstoreError>;
    fn backend_name(&self) -> &'static str;
}

Required Methods§

Source

fn get(&self, account: &str) -> Result<Option<String>, CredstoreError>

Source

fn set(&self, account: &str, value: &str) -> Result<(), CredstoreError>

Source

fn delete(&self, account: &str) -> Result<(), CredstoreError>

Source

fn backend_name(&self) -> &'static str

Implementors§