pub struct GameMode;Trait Implementations§
Source§impl GameTool for GameMode
impl GameTool for GameMode
Source§fn display_name(&self) -> &'static str
fn display_name(&self) -> &'static str
Human-readable display name.
Source§fn category(&self) -> ToolCategory
fn category(&self) -> ToolCategory
Tool category.
Source§fn detect_available(&self) -> ToolAvailability
fn detect_available(&self) -> ToolAvailability
Check if the tool is installed on the system.
Source§fn env_vars(&self, _config: &ToolConfig) -> SmallVec<[(String, String); 4]>
fn env_vars(&self, _config: &ToolConfig) -> SmallVec<[(String, String); 4]>
Environment variables to set when launching the game.
Source§fn wrapper_command(&self, _config: &ToolConfig) -> Option<WrapperEntry>
fn wrapper_command(&self, _config: &ToolConfig) -> Option<WrapperEntry>
Wrapper command to chain before the game (e.g.
gamemoderun).Source§fn default_config(&self) -> ToolConfig
fn default_config(&self) -> ToolConfig
Default configuration for a fresh enable.
Source§fn wine_dll_overrides(&self, _config: &ToolConfig) -> SmallVec<[String; 4]>
fn wine_dll_overrides(&self, _config: &ToolConfig) -> SmallVec<[String; 4]>
Wine DLL overrides needed (e.g.
"dxgi", "version").Source§fn apply(&self, _game_dir: &Path, _config: &ToolConfig) -> Result<AppliedFiles>
fn apply(&self, _game_dir: &Path, _config: &ToolConfig) -> Result<AppliedFiles>
Apply/install files into the game directory (DLLs, shaders, etc.).
Returns a manifest of files written for revert tracking.
Source§fn revert(&self, game_dir: &Path, applied: &AppliedFiles) -> Result<()>
fn revert(&self, game_dir: &Path, applied: &AppliedFiles) -> Result<()>
Revert files previously applied by [
apply].Source§fn generate_config(&self, _config: &ToolConfig) -> Option<GeneratedConfig>
fn generate_config(&self, _config: &ToolConfig) -> Option<GeneratedConfig>
Generate a per-game config file (e.g. MangoHud.conf).
Auto Trait Implementations§
impl Freeze for GameMode
impl RefUnwindSafe for GameMode
impl Send for GameMode
impl Sync for GameMode
impl Unpin for GameMode
impl UnsafeUnpin for GameMode
impl UnwindSafe for GameMode
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
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§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