pub struct RuntimeConfig {Show 28 fields
pub ip: String,
pub port: u16,
pub login_account: Option<String>,
pub login_pwd: Option<String>,
pub login_pwd_md5: Option<String>,
pub login_pwd_file: Option<String>,
pub login_region: String,
pub login_region_explicit: bool,
pub platform: Platform,
pub auth_server: String,
pub device_id: Option<String>,
pub reset_device: bool,
pub setup_only: bool,
pub verify_code: Option<String>,
pub log_level: String,
pub websocket_port: Option<u16>,
pub telnet_port: Option<u16>,
pub rest_port: Option<u16>,
pub grpc_port: Option<u16>,
pub rsa_private_key: Option<String>,
pub json_log: bool,
pub lang: String,
pub rest_keys_file: Option<PathBuf>,
pub grpc_keys_file: Option<PathBuf>,
pub ws_keys_file: Option<PathBuf>,
pub audit_log: Option<PathBuf>,
pub allow_tcp_unauthenticated: bool,
pub tz: Option<String>,
}Expand description
合并后的运行时配置
Fields§
§ip: String§port: u16§login_account: Option<String>§login_pwd: Option<String>§login_pwd_md5: Option<String>§login_pwd_file: Option<String>§login_region: String§login_region_explicit: boolv1.4.42 (eli v1.4.40 报告 P3.5 澄清): 标记用户是否显式传了 --login-region
(或在 config 文件里写了)。平台是 moomoo + 用户显式传 region → main() 入口 WARN
明示此 flag 对 moomoo 是 noop。避免用户误以为 “layer 2/3 platform IP 按 region 切”。
platform: Platform§auth_server: String§device_id: Option<String>§reset_device: bool§setup_only: bool§verify_code: Option<String>v1.4.57 UX-04: 直接传入 SMS 验证码跳过 stdin 交互(Telegram 中继等场景)
log_level: String§websocket_port: Option<u16>§telnet_port: Option<u16>§rest_port: Option<u16>§grpc_port: Option<u16>§rsa_private_key: Option<String>§json_log: bool§lang: String§rest_keys_file: Option<PathBuf>§grpc_keys_file: Option<PathBuf>§ws_keys_file: Option<PathBuf>§audit_log: Option<PathBuf>§allow_tcp_unauthenticated: bool§tz: Option<String>Auto Trait Implementations§
impl Freeze for RuntimeConfig
impl RefUnwindSafe for RuntimeConfig
impl Send for RuntimeConfig
impl Sync for RuntimeConfig
impl Unpin for RuntimeConfig
impl UnsafeUnpin for RuntimeConfig
impl UnwindSafe for RuntimeConfig
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<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request§impl<L> LayerExt<L> for L
impl<L> LayerExt<L> for L
§fn named_layer<S>(&self, service: S) -> Layered<<L as Layer<S>>::Service, S>where
L: Layer<S>,
fn named_layer<S>(&self, service: S) -> Layered<<L as Layer<S>>::Service, S>where
L: Layer<S>,
Applies the layer to a service and wraps it in [
Layered].