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 = Result<(), ()>>;
fn remove<T: AsRef<str>>(
&mut self,
key: T,
) -> impl Future<Output = Result<(), ()>>;
}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 = Result<(), ()>>
fn remove<T: AsRef<str>>( &mut self, key: T, ) -> impl Future<Output = Result<(), ()>>
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".