Struct scl_core::client::ClientConfig
source · pub struct ClientConfig {
pub auth: AuthMethod,
pub version_info: VersionInfo,
pub version_type: String,
pub custom_java_args: Vec<String>,
pub custom_args: Vec<String>,
pub java_runtime: JavaRuntime,
pub max_mem: u32,
pub recheck: bool,
}
Expand description
一个客户端配置结构,开发者需要填充内部的一部分数据后传递给 Client::new
方可正确启动游戏
Fields§
§auth: AuthMethod
使用的玩家账户
version_info: VersionInfo
启动的版本元数据信息
version_type: String
启动的版本类型
custom_java_args: Vec<String>
自定义 JVM 参数,这将会附加在 Class Path 之前的位置
custom_args: Vec<String>
自定义游戏参数,这将会附加在参数的最后部分
java_runtime: JavaRuntime
需要使用的 Java 运行时
max_mem: u32
最高内存,以 MB 为单位
recheck: bool
是否进行预先资源及依赖检查
Trait Implementations§
source§impl Clone for ClientConfig
impl Clone for ClientConfig
source§fn clone(&self) -> ClientConfig
fn clone(&self) -> ClientConfig
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 moreAuto Trait Implementations§
impl RefUnwindSafe for ClientConfig
impl Send for ClientConfig
impl Sync for ClientConfig
impl Unpin for ClientConfig
impl UnwindSafe for ClientConfig
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