pub struct ServerConfig {
pub listen_addr: String,
pub server_ver: i32,
pub login_user_id: u64,
pub keepalive_interval: i32,
pub rsa_private_key: Option<String>,
}Expand description
服务端配置
Fields§
§listen_addr: String§server_ver: i32§login_user_id: u64§keepalive_interval: i32§rsa_private_key: Option<String>RSA 私钥 PEM 内容(可选,启用后 InitConnect 使用 RSA 加解密)
Trait Implementations§
Source§impl Clone for ServerConfig
impl Clone for ServerConfig
Source§fn clone(&self) -> ServerConfig
fn clone(&self) -> ServerConfig
Returns a duplicate 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 Freeze for ServerConfig
impl RefUnwindSafe for ServerConfig
impl Send for ServerConfig
impl Sync for ServerConfig
impl Unpin for ServerConfig
impl UnwindSafe for ServerConfig
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