pub struct GatewayStatusEvent {
pub gateway: String,
pub at_ms: i64,
pub change: GatewayChange,
pub status: Box<GatewayStatus>,
}Expand description
状态变化事件(0.11.0 第3刀;线名 eStatus.<派生网关名>)。
一条事件 = 变化 + 整份快照(二合一):界面一次到货做三件事
(打文案 / 回写状态列 / 去重告警),零回查、零轮询。
发布纪律:SDK 回调 → with_ingress → TdOut::Status/MdOut::Status →
插件 worker publish;回调线程不许裸发(与数据面同一条规矩)。
Fields§
§gateway: String网关注册名(与 eStatus. 后缀一致)
at_ms: i64变化发生(= 快照采样)时刻,纪元毫秒
change: GatewayChange变化种类
status: Box<GatewayStatus>变化发生那一刻的整份状态快照
Implementations§
Trait Implementations§
Source§impl Clone for GatewayStatusEvent
impl Clone for GatewayStatusEvent
Auto Trait Implementations§
impl Freeze for GatewayStatusEvent
impl RefUnwindSafe for GatewayStatusEvent
impl Send for GatewayStatusEvent
impl Sync for GatewayStatusEvent
impl Unpin for GatewayStatusEvent
impl UnsafeUnpin for GatewayStatusEvent
impl UnwindSafe for GatewayStatusEvent
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