pub struct BrokerConnMeta {
pub broker_auth: BrokerAuth,
pub device_id: String,
pub connect_addr: String,
pub keep_alive_secs: u32,
}Expand description
网关桥接器 每个 broker 通道的“重连所需元数据“缓存(v1.4.24)。
Fields§
§broker_auth: BrokerAuth§device_id: StringCMD20147 UpdateConnIpBroker 需要 device_id;broker 重连不能丢。
connect_addr: String最后一次成功登录的 TCP 地址(含 redirect 后的终点)。
keep_alive_secs: u32首登时使用的 heartbeat 间隔(秒),重连后沿用。
Trait Implementations§
Source§impl Clone for BrokerConnMeta
impl Clone for BrokerConnMeta
Source§fn clone(&self) -> BrokerConnMeta
fn clone(&self) -> BrokerConnMeta
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 BrokerConnMeta
impl RefUnwindSafe for BrokerConnMeta
impl Send for BrokerConnMeta
impl Sync for BrokerConnMeta
impl Unpin for BrokerConnMeta
impl UnsafeUnpin for BrokerConnMeta
impl UnwindSafe for BrokerConnMeta
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