pub struct LaunchCommand {
pub runtime: Distribution,
pub jvm_arguments: Vec<String>,
pub main_class: String,
pub game_arguments: Vec<String>,
pub env: HashMap<String, String>,
pub cwd: Option<PathBuf>,
}Fields§
§runtime: Distribution§jvm_arguments: Vec<String>§main_class: String§game_arguments: Vec<String>§env: HashMap<String, String>§cwd: Option<PathBuf>Implementations§
Source§impl LaunchCommand
impl LaunchCommand
pub fn new( runtime: Distribution, jvm_arguments: Vec<String>, main_class: String, game_arguments: Vec<String>, ) -> Self
pub fn runtime_executable(&self) -> PathBuf
pub fn program(&self) -> PathBuf
pub fn arguments(&self) -> Vec<String>
pub fn add_jvm_argument(&mut self, argument: String)
pub fn add_jvm_arguments(&mut self, arguments: Vec<String>)
pub fn add_game_argument(&mut self, argument: String)
pub fn add_game_arguments(&mut self, arguments: Vec<String>)
pub fn with_cwd(self, cwd: PathBuf) -> Self
pub fn with_env(self, key: String, value: String) -> Self
pub fn spawn(&self) -> Result<Child>
Trait Implementations§
Source§impl Clone for LaunchCommand
impl Clone for LaunchCommand
Auto Trait Implementations§
impl Forget for LaunchCommand
impl Freeze for LaunchCommandwhere
*const u8 is !null: Freeze,
PhantomData<u8>: Freeze,
&'static str: Freeze,
PhantomData<String>: Freeze,
PhantomData<(String, String)>: Freeze,
impl Move for LaunchCommand
impl RefUnwindSafe for LaunchCommand
impl Send for LaunchCommand
impl Sync for LaunchCommand
impl Unpin for LaunchCommand
impl UnsafeUnpin for LaunchCommandwhere
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
&'static str: UnsafeUnpin,
PhantomData<String>: UnsafeUnpin,
PhantomData<(String, String)>: UnsafeUnpin,
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