pub struct StreamHealth {
pub status: HealthStatus,
pub samples_processed: u64,
pub buffers_processed: u64,
pub underruns: u64,
pub overruns: u64,
pub dropped_samples: u64,
pub clipped_samples: u64,
pub uptime: Duration,
pub buffer_level: f32,
}Expand description
Stream health metrics
Fields§
§status: HealthStatusCurrent health status
samples_processed: u64Total samples processed
buffers_processed: u64Total buffers processed
underruns: u64Number of buffer underruns (consumer faster than producer)
overruns: u64Number of buffer overruns (producer faster than consumer)
dropped_samples: u64Number of dropped samples
clipped_samples: u64Number of clipped samples
uptime: DurationTime stream has been active
buffer_level: f32Current buffer fill level (0.0 to 1.0)
Trait Implementations§
Source§impl Clone for StreamHealth
impl Clone for StreamHealth
Source§fn clone(&self) -> StreamHealth
fn clone(&self) -> StreamHealth
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 StreamHealth
impl Debug for StreamHealth
Auto Trait Implementations§
impl Freeze for StreamHealth
impl RefUnwindSafe for StreamHealth
impl Send for StreamHealth
impl Sync for StreamHealth
impl Unpin for StreamHealth
impl UnwindSafe for StreamHealth
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