pub struct ParseStats { /* private fields */ }Expand description
Byte-level parse coverage statistics.
Available from all three iterator levels via stats() or parse_stats().
Every byte consumed from the reader is accounted for as either parsed
(bytes_read - bytes_skipped) or skipped (bytes_skipped).
Implementations§
Source§impl ParseStats
impl ParseStats
Sourcepub fn bytes_read(&self) -> u64
pub fn bytes_read(&self) -> u64
Total bytes consumed from the reader.
Sourcepub fn bytes_skipped(&self) -> u64
pub fn bytes_skipped(&self) -> u64
Bytes that were skipped (not parsed into frames).
Sourcepub fn incomplete_frames(&self) -> u64
pub fn incomplete_frames(&self) -> u64
Frames whose content ran out before byte_count at end of input.
Maintained in every SkipTracking mode.
Sourcepub fn incomplete_frame_bytes(&self) -> u64
pub fn incomplete_frame_bytes(&self) -> u64
Total shortfall of those frames. A caller stitching rotated files together decides for itself whether a shortfall is a rotation cut.
Sourcepub fn stale_evictions(&self) -> u64
pub fn stale_evictions(&self) -> u64
Connection buffers dropped mid-stream while still holding a partial message. Unlike a frame cut at end of input, this content is never emitted, so it is lost from the output.
Sourcepub fn stale_evicted_bytes(&self) -> u64
pub fn stale_evicted_bytes(&self) -> u64
Bytes those buffers were holding.
Sourcepub fn non_sip_prefixes(&self) -> u64
pub fn non_sip_prefixes(&self) -> u64
Times a TCP buffer resynchronised past bytes that began no SIP message.
Sourcepub fn non_sip_prefix_bytes(&self) -> u64
pub fn non_sip_prefix_bytes(&self) -> u64
Bytes discarded by those resynchronisations.
Sourcepub fn unparsed_regions(&self) -> &[UnparsedRegion]
pub fn unparsed_regions(&self) -> &[UnparsedRegion]
Detailed unparsed region records. Only populated when
SkipTracking is TrackRegions or CaptureData.
Sourcepub fn drain_regions(&mut self) -> Vec<UnparsedRegion>
pub fn drain_regions(&mut self) -> Vec<UnparsedRegion>
Take all accumulated unparsed regions, leaving the list empty.
Trait Implementations§
Source§impl Clone for ParseStats
impl Clone for ParseStats
Source§fn clone(&self) -> ParseStats
fn clone(&self) -> ParseStats
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more