Struct BrokerConfig
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§
§impl Clone for BrokerConfig
impl Clone for BrokerConfig
§fn clone(&self) -> BrokerConfig
fn clone(&self) -> BrokerConfig
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl 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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§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>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more