pub struct GatewayStats {
pub local_subnet: SubnetId,
pub forwarded: u64,
pub dropped: u64,
pub peer_subnets: Vec<SubnetId>,
pub export_rules: u64,
}Expand description
Aggregate SubnetGateway counters surfaced by
DeckClient::gateway_stats. Plain value type so operator
tooling can render / serialize / diff snapshots without
reaching into the substrate’s atomic counters.
Fields§
§local_subnet: SubnetIdThe mesh node’s local subnet — same as
DeckClient::local_subnet, echoed here so a
gateway stats rendering doesn’t need a second
accessor call.
forwarded: u64Total cross-subnet visibility decisions that resolved to “forward” (publish-fanout admitted; subscribe-gate admitted). Monotonic-increasing for the lifetime of the gateway.
dropped: u64Total decisions that resolved to “drop.” Monotonic.
peer_subnets: Vec<SubnetId>Snapshot of every peer subnet the gateway is bridging to,
sorted by raw bits. Sourced from SubnetGateway::peer_subnets.
export_rules: u64Number of explicit (channel, target-subnets) rules in
the export table — what gateway exports enumerates.
Trait Implementations§
Source§impl Clone for GatewayStats
impl Clone for GatewayStats
Source§fn clone(&self) -> GatewayStats
fn clone(&self) -> GatewayStats
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for GatewayStats
impl Debug for GatewayStats
Source§impl PartialEq for GatewayStats
impl PartialEq for GatewayStats
Source§fn eq(&self, other: &GatewayStats) -> bool
fn eq(&self, other: &GatewayStats) -> bool
self and other values to be equal, and is used by ==.impl Eq for GatewayStats
impl StructuralPartialEq for GatewayStats
Auto Trait Implementations§
impl Freeze for GatewayStats
impl RefUnwindSafe for GatewayStats
impl Send for GatewayStats
impl Sync for GatewayStats
impl Unpin for GatewayStats
impl UnsafeUnpin for GatewayStats
impl UnwindSafe for GatewayStats
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.