pub trait GuardDataStore {
type Err: Error;
// Required methods
fn store(
&mut self,
account: &str,
machine_token: String,
) -> impl Future<Output = Result<(), Self::Err>> + Send;
fn load(
&mut self,
account: &str,
) -> impl Future<Output = Result<Option<String>, Self::Err>> + Send;
}Expand description
Trait for storing steam guard machine tokens
Required Associated Types§
Required Methods§
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.