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 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
Trait Implementations§
Source§impl Clone for LaunchCommand
impl Clone for LaunchCommand
Auto Trait Implementations§
impl Forget for LaunchCommand
impl Freeze for LaunchCommand
impl Move 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