pub struct StatusSnapshot {
pub version: &'static str,
pub login: LoginStatus,
pub platform: PlatformStatus,
pub brokers: Vec<BrokerStatus>,
pub cache: CacheStats,
pub last_reload_refresh: ReloadRefreshStatus,
}Expand description
v1.4.32+ 只读健康状态快照(/api/admin/status 的结构化响应)
GatewayBridge::snapshot_status() 生成此结构。字段设计原则:只暴露运维
真实关心的数据(登录 / broker 通道 / cache 就绪度),不暴露内部
session_key / tgtgt / device_id 等敏感凭据。
Fields§
§version: &'static stropend 版本号,来自 env!("CARGO_PKG_VERSION")
login: LoginStatus§platform: PlatformStatus§brokers: Vec<BrokerStatus>§cache: CacheStats§last_reload_refresh: ReloadRefreshStatusv1.4.106 codex 0554 F3 [P2]: /api/admin/reload 后台 refresh 任务
的最近状态. ops 通过 status snapshot 看 refresh 是否在跑 / 成功 /
失败 (sync clear cipher 是 reload 主目的, refresh 是 best-effort).
Trait Implementations§
Source§impl Clone for StatusSnapshot
impl Clone for StatusSnapshot
Source§fn clone(&self) -> StatusSnapshot
fn clone(&self) -> StatusSnapshot
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 StatusSnapshot
impl Debug for StatusSnapshot
Auto Trait Implementations§
impl Freeze for StatusSnapshot
impl RefUnwindSafe for StatusSnapshot
impl Send for StatusSnapshot
impl Sync for StatusSnapshot
impl Unpin for StatusSnapshot
impl UnsafeUnpin for StatusSnapshot
impl UnwindSafe for StatusSnapshot
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