pub struct LaunchCommand {
pub executable: PathBuf,
pub args: Vec<String>,
pub working_dir: PathBuf,
pub env: Vec<(String, String)>,
}Expand description
A Java process description ready to spawn.
The command is intentionally returned as structured parts instead of a shell string so launchers can avoid quoting bugs across Windows, macOS, and Linux.
Fields§
§executable: PathBufJava executable path or command name.
args: Vec<String>JVM, main class, and game arguments in process order.
working_dir: PathBufDirectory that should be used as the child process current directory.
env: Vec<(String, String)>Environment variables to set on the child process.
Implementations§
Source§impl LaunchCommand
impl LaunchCommand
Sourcepub fn to_process_parts(&self) -> (PathBuf, Vec<String>)
pub fn to_process_parts(&self) -> (PathBuf, Vec<String>)
Returns the executable and argument list for callers that do not need working-directory or environment metadata.
Trait Implementations§
Source§impl Clone for LaunchCommand
impl Clone for LaunchCommand
Source§fn clone(&self) -> LaunchCommand
fn clone(&self) -> LaunchCommand
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for LaunchCommand
impl Debug for LaunchCommand
Source§impl PartialEq for LaunchCommand
impl PartialEq for LaunchCommand
Source§fn eq(&self, other: &LaunchCommand) -> bool
fn eq(&self, other: &LaunchCommand) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Eq for LaunchCommand
impl StructuralPartialEq for LaunchCommand
Auto Trait Implementations§
impl Freeze for LaunchCommand
impl RefUnwindSafe for LaunchCommand
impl Send for LaunchCommand
impl Sync for LaunchCommand
impl Unpin for LaunchCommand
impl UnsafeUnpin for LaunchCommand
impl UnwindSafe for LaunchCommand
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.