pub struct BrokerConfig {
pub broker_id: u32,
pub name: &'static str,
pub conn_identity: u32,
pub auth_domain: &'static str,
}Expand description
单个 broker 通道的配置 —— broker_id → (名字 / conn_identity / broker auth HTTP 域名)
对齐 C++:
FTLogin/Src/ftlogin/config/impl/broker_config.cpp:9-18(broker_id → chn_type + auth_domain 键)FTLogin/Src/ftlogin/config/impl/env_config.cpp:41-43(auth_domain 字符串)FTLogin/Src/ftlogin/channel/impl/proto/FTConnCmn.proto:27-40(conn_identity 值)
Fields§
§broker_id: u32§name: &'static str§conn_identity: u32登录协议 CMD 1001 LoginReq.encrypt_data.conn_identity
auth_domain: &'static strbroker_auth HTTP POST 的域名前缀(不含 scheme)
Trait Implementations§
Source§impl Clone for BrokerConfig
impl Clone for BrokerConfig
Source§fn clone(&self) -> BrokerConfig
fn clone(&self) -> BrokerConfig
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 moreSource§impl Debug for BrokerConfig
impl Debug for BrokerConfig
impl Copy for BrokerConfig
Auto Trait Implementations§
impl Freeze for BrokerConfig
impl RefUnwindSafe for BrokerConfig
impl Send for BrokerConfig
impl Sync for BrokerConfig
impl Unpin for BrokerConfig
impl UnsafeUnpin for BrokerConfig
impl UnwindSafe for BrokerConfig
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