pub struct StreamingStats {
pub total_chunks_processed: u64,
pub total_processing_time_ms: f64,
pub total_errors: u64,
pub max_chunk_latency_ms: f32,
pub min_chunk_latency_ms: f32,
pub total_samples: u64,
}Expand description
Streaming statistics for performance monitoring
Fields§
§total_chunks_processed: u64Total chunks processed
total_processing_time_ms: f64Total processing time
total_errors: u64Total errors encountered
max_chunk_latency_ms: f32Maximum chunk latency
min_chunk_latency_ms: f32Minimum chunk latency
total_samples: u64Total samples processed
Implementations§
Source§impl StreamingStats
impl StreamingStats
Sourcepub fn update_chunk_stats(
&mut self,
sample_count: usize,
processing_time: Duration,
)
pub fn update_chunk_stats( &mut self, sample_count: usize, processing_time: Duration, )
Update statistics with chunk processing information
Sourcepub fn average_chunk_latency_ms(&self) -> f32
pub fn average_chunk_latency_ms(&self) -> f32
Get average chunk processing latency
Sourcepub fn throughput_samples_per_sec(&self) -> f32
pub fn throughput_samples_per_sec(&self) -> f32
Get processing throughput (samples per second)
Sourcepub fn error_rate(&self) -> f32
pub fn error_rate(&self) -> f32
Get error rate
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 (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 StreamingStats
impl Debug for StreamingStats
Source§impl Default for StreamingStats
impl Default for StreamingStats
Source§fn default() -> StreamingStats
fn default() -> StreamingStats
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for StreamingStats
impl RefUnwindSafe for StreamingStats
impl Send for StreamingStats
impl Sync for StreamingStats
impl Unpin for StreamingStats
impl UnsafeUnpin 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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> ErasedDestructor for Twhere
T: 'static,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more