pub trait WineRunExt {
// Required methods
fn run<T: AsRef<OsStr>>(&self, binary: T) -> Result<Child>;
fn run_args<T, S>(&self, args: T) -> Result<Child>
where T: IntoIterator<Item = S>,
S: AsRef<OsStr>;
fn run_args_with_env<T, K, S>(&self, args: T, envs: K) -> Result<Child>
where T: IntoIterator<Item = S>,
K: IntoIterator<Item = (S, S)>,
S: AsRef<OsStr>;
fn winepath(&self, path: &str) -> Result<PathBuf>;
}Required Methods§
Sourcefn run<T: AsRef<OsStr>>(&self, binary: T) -> Result<Child>
fn run<T: AsRef<OsStr>>(&self, binary: T) -> Result<Child>
Execute some command using wine
use wincompatlib::prelude::*;
let process = Wine::default().run("/your/executable");Sourcefn run_args<T, S>(&self, args: T) -> Result<Child>
fn run_args<T, S>(&self, args: T) -> Result<Child>
Execute some command with args using wine
use wincompatlib::prelude::*;
let process = Wine::default().run_args(["/your/executable", "--help"]);Sourcefn run_args_with_env<T, K, S>(&self, args: T, envs: K) -> Result<Child>
fn run_args_with_env<T, K, S>(&self, args: T, envs: K) -> Result<Child>
Execute some command with args and environment variables using wine
use wincompatlib::prelude::*;
let process = Wine::default().run_args_with_env(["/your/executable", "--help"], [
("YOUR", "variable")
]);Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.