pub struct ProfileStore { /* private fields */ }Expand description
The Storage of the profile in use: each key is read and written as
that profile’s (ProfileId::key), and list lists
only its keys, without their prefix. What stays with the computer (the
list of profiles, whatever the game keeps per computer) goes through
computer.
Implementations§
Source§impl ProfileStore
impl ProfileStore
Trait Implementations§
Source§impl Debug for ProfileStore
impl Debug for ProfileStore
Source§impl Default for ProfileStore
An empty MemoryStorage, as the
first profile’s.
impl Default for ProfileStore
An empty MemoryStorage, as the
first profile’s.
Source§impl Storage for ProfileStore
impl Storage for ProfileStore
Source§fn read(&self, key: &str) -> Result<Option<String>, StorageError>
fn read(&self, key: &str) -> Result<Option<String>, StorageError>
The value stored at
key, or None if nothing has been written
there (or it was deleted).Source§fn write(&mut self, key: &str, value: &str) -> Result<(), StorageError>
fn write(&mut self, key: &str, value: &str) -> Result<(), StorageError>
Stores
value at key, replacing whatever was there.Auto Trait Implementations§
impl !RefUnwindSafe for ProfileStore
impl !Send for ProfileStore
impl !Sync for ProfileStore
impl !UnwindSafe for ProfileStore
impl Freeze for ProfileStore
impl Unpin for ProfileStore
impl UnsafeUnpin for ProfileStore
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