Skip to main content

TokenSecrets

Trait TokenSecrets 

Source
pub trait TokenSecrets: Sync {
    // Required methods
    fn get(
        &self,
        account_id: &str,
    ) -> impl Future<Output = Result<Option<Zeroizing<String>>, String>> + Send;
    fn put(
        &self,
        account_id: &str,
        value: &str,
    ) -> impl Future<Output = Result<(), String>> + Send;
}
Expand description

Reads and writes of an account’s keychain entry.

Required Methods§

Source

fn get( &self, account_id: &str, ) -> impl Future<Output = Result<Option<Zeroizing<String>>, String>> + Send

Source

fn put( &self, account_id: &str, value: &str, ) -> impl Future<Output = Result<(), String>> + Send

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§