pub struct ParseStats {
pub bytes_read: u64,
pub bytes_skipped: u64,
pub unparsed_regions: Vec<UnparsedRegion>,
}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).
Fields§
§bytes_read: u64Total bytes consumed from the reader.
bytes_skipped: u64Bytes that were skipped (not parsed into frames).
unparsed_regions: Vec<UnparsedRegion>Detailed unparsed region records. Only populated when
SkipTracking is TrackRegions or CaptureData.
Implementations§
Source§impl ParseStats
impl ParseStats
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 · 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