pub struct ReShade;Trait Implementations§
Source§impl GameTool for ReShade
impl GameTool for ReShade
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 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 default_config(&self) -> ToolConfig
fn default_config(&self) -> ToolConfig
Default configuration for a fresh enable.
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 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 ReShade
impl RefUnwindSafe for ReShade
impl Send for ReShade
impl Sync for ReShade
impl Unpin for ReShade
impl UnsafeUnpin for ReShade
impl UnwindSafe for ReShade
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