pub struct Stats {
pub packets: u64,
pub sections_completed: u64,
pub emitted: u64,
pub suppressed: u64,
pub crc_failures: u64,
pub malformed_packets: u64,
pub gate_evictions: u64,
}Expand description
Section statistics, monotonically accumulated across feed calls.
Fields§
§packets: u64TS packets fed (every feed call increments this).
sections_completed: u64Complete sections produced by the reassemblers (pre-gate, pre-CRC).
emitted: u64Sections emitted as events (changed, valid).
suppressed: u64Sections suppressed by the version gate (unchanged repeats).
crc_failures: u64Structurally invalid (sub-3-byte; cannot occur from the in-crate reassembler) and CRC-failed sections share this counter. Sections are dropped before emission; the gate is never updated for them.
malformed_packets: u64TS packets that failed to parse (bad sync byte, too short).
gate_evictions: u64Gate entries evicted because the gate was at capacity.
Trait Implementations§
impl Copy for Stats
impl Eq for Stats
impl StructuralPartialEq for Stats
Auto Trait Implementations§
impl Freeze for Stats
impl RefUnwindSafe for Stats
impl Send for Stats
impl Sync for Stats
impl Unpin for Stats
impl UnsafeUnpin for Stats
impl UnwindSafe for Stats
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