Skip to main content

GuardDataStore

Trait GuardDataStore 

Source
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§

Source

fn store( &mut self, account: &str, machine_token: String, ) -> impl Future<Output = Result<(), Self::Err>> + Send

Store a machine token for an account

Source

fn load( &mut self, account: &str, ) -> impl Future<Output = Result<Option<String>, Self::Err>> + Send

Retrieve the stored token for an account

Dyn Compatibility§

This trait is not dyn compatible.

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

Implementors§