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§
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 = ()>
Object Safety§
This trait is not object safe.