Trait ic_auth_client::storage::AuthClientStorage

source ·
pub trait AuthClientStorage {
    // Required methods
    fn get<T: AsRef<str>>(
        &mut self,
        key: T,
    ) -> impl Future<Output = Option<StoredKey>>;
    fn set<S: AsRef<str>, T: AsRef<str>>(
        &mut self,
        key: S,
        value: T,
    ) -> impl Future<Output = ()>;
    fn remove<T: AsRef<str>>(&mut self, key: T) -> impl Future<Output = ()>;
}
Expand description

Trait for persisting user authentication data.

Required Methods§

source

fn get<T: AsRef<str>>( &mut self, key: T, ) -> impl Future<Output = Option<StoredKey>>

source

fn set<S: AsRef<str>, T: AsRef<str>>( &mut self, key: S, value: T, ) -> impl Future<Output = ()>

source

fn remove<T: AsRef<str>>(&mut self, key: T) -> impl Future<Output = ()>

Object Safety§

This trait is not object safe.

Implementors§