pub struct StreamingStats {
pub events_processed: usize,
pub tokens_processed: usize,
pub max_buffer_size: usize,
pub max_depth: usize,
pub scanner_stats: Option<ScannerStats>,
pub parse_time_ns: u64,
}Expand description
Statistics about streaming parser performance
Fields§
§events_processed: usizeNumber of events processed
tokens_processed: usizeNumber of tokens processed
max_buffer_size: usizeMaximum buffer size reached
max_depth: usizeMaximum nesting depth reached
scanner_stats: Option<ScannerStats>Zero-copy scanner statistics (if enabled)
parse_time_ns: u64Total time spent parsing (in nanoseconds)
Trait Implementations§
Source§impl Clone for StreamingStats
impl Clone for StreamingStats
Source§fn clone(&self) -> StreamingStats
fn clone(&self) -> StreamingStats
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 moreAuto Trait Implementations§
impl Freeze for StreamingStats
impl RefUnwindSafe for StreamingStats
impl Send for StreamingStats
impl Sync for StreamingStats
impl Unpin for StreamingStats
impl UnwindSafe for StreamingStats
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