#[non_exhaustive]pub struct TrafficEntry {
pub path: Path,
pub tier: Tier,
pub publisher: Traffic,
pub subscriber: Traffic,
pub announced: Announced,
pub closed: bool,
}Expand description
One (broadcast, tier) row of a Report.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.path: PathThe broadcast path the counters are keyed by.
tier: TierThe tier the counters recorded under.
publisher: TrafficEgress counters (this node publishing to peers).
subscriber: TrafficIngress counters (this node consuming from peers).
announced: AnnouncedWhen each side began holding the broadcast announced, while it does.
closed: boolThis is the entry’s final readout: no guard holds it, so the registry pruned it, and a later entry at the same key starts from zero.
Trait Implementations§
Source§impl Clone for TrafficEntry
impl Clone for TrafficEntry
Auto Trait Implementations§
impl Freeze for TrafficEntry
impl RefUnwindSafe for TrafficEntry
impl Send for TrafficEntry
impl Sync for TrafficEntry
impl Unpin for TrafficEntry
impl UnsafeUnpin for TrafficEntry
impl UnwindSafe for TrafficEntry
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