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 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
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ParseStats
impl Debug for ParseStats
Source§impl Default for ParseStats
impl Default for ParseStats
Source§fn default() -> ParseStats
fn default() -> ParseStats
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for ParseStats
impl RefUnwindSafe for ParseStats
impl Send for ParseStats
impl Sync for ParseStats
impl Unpin for ParseStats
impl UnsafeUnpin for ParseStats
impl UnwindSafe for ParseStats
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