Struct scl_core::version::structs::SCLLaunchConfig
source · pub struct SCLLaunchConfig {
pub max_mem: Option<usize>,
pub java_path: String,
pub game_independent: bool,
pub window_title: String,
pub jvm_args: String,
pub game_args: String,
pub wrapper_path: String,
pub wrapper_args: String,
}
Expand description
SCL 的独立版本设置,此处的信息会
Fields§
§max_mem: Option<usize>
最大内存,单位 MB,如不提供则为自动
java_path: String
Java 运行时路径
game_independent: bool
是否使用版本独立
window_title: String
设定游戏窗口标题
jvm_args: String
额外的 JVM 参数,将会附加到 Class Path 前面
game_args: String
额外的游戏参数,将会附加到参数末尾
wrapper_path: String
包装器执行文件路径,对于某些 Linux 用户有用,用于指定 Java 前的执行文件
wrapper_args: String
包装器执行文件参数,将会附加到包装器执行文件后
Trait Implementations§
source§impl Clone for SCLLaunchConfig
impl Clone for SCLLaunchConfig
source§fn clone(&self) -> SCLLaunchConfig
fn clone(&self) -> SCLLaunchConfig
Returns a copy of the value. Read more
1.0.0 · 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 SCLLaunchConfig
impl Debug for SCLLaunchConfig
source§impl Default for SCLLaunchConfig
impl Default for SCLLaunchConfig
source§fn default() -> SCLLaunchConfig
fn default() -> SCLLaunchConfig
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for SCLLaunchConfigwhere
SCLLaunchConfig: Default,
impl<'de> Deserialize<'de> for SCLLaunchConfigwhere SCLLaunchConfig: Default,
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl PartialEq<SCLLaunchConfig> for SCLLaunchConfig
impl PartialEq<SCLLaunchConfig> for SCLLaunchConfig
source§fn eq(&self, other: &SCLLaunchConfig) -> bool
fn eq(&self, other: &SCLLaunchConfig) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for SCLLaunchConfig
impl Serialize for SCLLaunchConfig
impl Eq for SCLLaunchConfig
impl StructuralEq for SCLLaunchConfig
impl StructuralPartialEq for SCLLaunchConfig
Auto Trait Implementations§
impl RefUnwindSafe for SCLLaunchConfig
impl Send for SCLLaunchConfig
impl Sync for SCLLaunchConfig
impl Unpin for SCLLaunchConfig
impl UnwindSafe for SCLLaunchConfig
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
§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.