pub struct GameManager { /* private fields */ }Implementations§
Source§impl GameManager
impl GameManager
pub fn new(config: Config, auth: AuthManager) -> Result<Self>
pub async fn list_library(&mut self) -> Result<Vec<Game>>
pub async fn enrich_game( &mut self, app_name: &str, namespace: &str, catalog_item_id: &str, ) -> Result<Game>
pub fn list_installed(&self) -> Result<Vec<InstalledGame>>
pub async fn install_game(&mut self, app_name: &str) -> Result<()>
pub async fn install_game_with_callback( &mut self, app_name: &str, progress_callback: Option<DownloadProgressCallback>, cancel_flag: Option<Arc<AtomicBool>>, ) -> Result<()>
pub fn import_game( &self, app_name: &str, install_path: PathBuf, executable: &str, ) -> Result<()>
Sourcepub fn set_game_wine(
&self,
app_name: &str,
wine_executable: Option<String>,
) -> Result<()>
pub fn set_game_wine( &self, app_name: &str, wine_executable: Option<String>, ) -> Result<()>
Set a custom Wine/Proton executable for a game
Sourcepub fn scan_directory(
&self,
scan_path: &PathBuf,
) -> Result<Vec<(String, PathBuf, String)>>
pub fn scan_directory( &self, scan_path: &PathBuf, ) -> Result<Vec<(String, PathBuf, String)>>
Scan a directory for potential game installations Returns a list of found games with their install path and detected executable
Sourcepub fn scan_common_locations(&self) -> Result<Vec<(String, PathBuf, String)>>
pub fn scan_common_locations(&self) -> Result<Vec<(String, PathBuf, String)>>
Scan common Epic/Legendary install locations
Sourcepub async fn verify_game(&mut self, app_name: &str) -> Result<Vec<String>>
pub async fn verify_game(&mut self, app_name: &str) -> Result<Vec<String>>
Verify game files integrity against manifest
Sourcepub async fn repair_game(
&mut self,
app_name: &str,
progress_callback: Option<DownloadProgressCallback>,
) -> Result<()>
pub async fn repair_game( &mut self, app_name: &str, progress_callback: Option<DownloadProgressCallback>, ) -> Result<()>
Repair game by re-downloading corrupted files
pub fn launch_game(&self, app_name: &str) -> Result<()>
pub fn uninstall_game(&self, app_name: &str) -> Result<()>
Sourcepub async fn check_for_updates(&self, app_name: &str) -> Result<Option<String>>
pub async fn check_for_updates(&self, app_name: &str) -> Result<Option<String>>
Check for game updates
Sourcepub async fn update_game(&mut self, app_name: &str) -> Result<()>
pub async fn update_game(&mut self, app_name: &str) -> Result<()>
Update a game to the latest version
Sourcepub async fn download_cloud_saves(&self, app_name: &str) -> Result<()>
pub async fn download_cloud_saves(&self, app_name: &str) -> Result<()>
Download cloud saves with backup and conflict resolution
Sourcepub async fn upload_cloud_saves(&self, app_name: &str) -> Result<()>
pub async fn upload_cloud_saves(&self, app_name: &str) -> Result<()>
Upload local saves to cloud
Sourcepub fn get_cloud_save_status(&self, app_name: &str) -> Result<CloudSaveStatus>
pub fn get_cloud_save_status(&self, app_name: &str) -> Result<CloudSaveStatus>
Get cloud save sync status
Auto Trait Implementations§
impl Freeze for GameManager
impl !RefUnwindSafe for GameManager
impl Send for GameManager
impl Sync for GameManager
impl Unpin for GameManager
impl !UnwindSafe for GameManager
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
§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Convert
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can
then be further downcast into Box<ConcreteType> where ConcreteType implements Trait.§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Convert
Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be
further downcast into Rc<ConcreteType> where ConcreteType implements Trait.§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
Convert
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Convert
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.§impl<T> DowncastSync for T
impl<T> DowncastSync for T
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more