pub struct StreamingStats {
pub chunks_processed: u64,
pub avg_processing_time_ms: f32,
pub current_latency_ms: f32,
pub peak_latency_ms: f32,
pub buffer_underruns: u64,
pub buffer_overruns: u64,
pub real_time_factor: f32,
pub cpu_usage: f32,
pub memory_usage_mb: f32,
pub active_streams: u32,
pub error_count: u64,
}Expand description
Streaming performance statistics
Fields§
§chunks_processed: u64Total processed chunks
avg_processing_time_ms: f32Average processing time per chunk (ms)
current_latency_ms: f32Current latency (ms)
peak_latency_ms: f32Peak latency (ms)
buffer_underruns: u64Buffer underruns
buffer_overruns: u64Buffer overruns
real_time_factor: f32Real-time factor (1.0 = real-time)
cpu_usage: f32CPU usage percentage
memory_usage_mb: f32Memory usage (MB)
active_streams: u32Active stream count
error_count: u64Error count
Implementations§
Source§impl StreamingStats
impl StreamingStats
Sourcepub fn update_rtf(&mut self, audio_duration_ms: f32, processing_time_ms: f32)
pub fn update_rtf(&mut self, audio_duration_ms: f32, processing_time_ms: f32)
Update real-time factor calculation
Sourcepub fn is_real_time(&self) -> bool
pub fn is_real_time(&self) -> bool
Check if streaming is meeting real-time requirements
Sourcepub fn quality_score(&self) -> f32
pub fn quality_score(&self) -> f32
Get quality score (0.0-1.0, higher is better)
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 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 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,
Source§impl<S> FromSample<S> for S
impl<S> FromSample<S> for S
fn from_sample_(s: S) -> S
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