Struct steam_vent::auth::FileGuardDataStore
source · pub struct FileGuardDataStore { /* private fields */ }Expand description
Store the steam guard data in a json file
Implementations§
source§impl FileGuardDataStore
impl FileGuardDataStore
pub fn new(path: PathBuf) -> Self
sourcepub fn user_cache() -> Self
pub fn user_cache() -> Self
Store the machine tokens in the user’s cache directory
Trait Implementations§
source§impl GuardDataStore for FileGuardDataStore
impl GuardDataStore for FileGuardDataStore
type Err = FileStoreError
fn store<'life0, 'life1, 'async_trait>(
&'life0 mut self,
account: &'life1 str,
machine_token: String
) -> Pin<Box<dyn Future<Output = Result<(), Self::Err>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn load<'life0, 'life1, 'async_trait>(
&'life0 mut self,
account: &'life1 str
) -> Pin<Box<dyn Future<Output = Result<Option<String>, Self::Err>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Auto Trait Implementations§
impl Freeze for FileGuardDataStore
impl RefUnwindSafe for FileGuardDataStore
impl Send for FileGuardDataStore
impl Sync for FileGuardDataStore
impl Unpin for FileGuardDataStore
impl UnwindSafe for FileGuardDataStore
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more