#[non_exhaustive]pub struct Snapshot { /* private fields */ }Expand description
A point-in-time, host-level rollup of a registry’s counters, returned
by Registry::snapshot.
Every counter is summed across all broadcasts the registry is tracking and
split by tier and role, plus per-tier connected-session presence. One entry
per tier that recorded any traffic or session, keyed by the tier’s label (so
an idle tier is simply absent). Intended for a scrape / /metrics-style
endpoint where per-broadcast cardinality is unwanted; use
Registry::report for the per-broadcast breakdown. A disabled registry
yields no rows.
Implementations§
Source§impl Snapshot
impl Snapshot
Sourcepub fn control(&self) -> Vec<(Tier, Control, Bytes)>
pub fn control(&self) -> Vec<(Tier, Control, Bytes)>
The (tier, class, totals) control-message rows with any traffic, sorted by tier and class.
Includes prefixes inside complete codec values, but excludes separately coded type selectors,
media payload, and transport framing, acknowledgements, and retransmissions.