pub enum StreamingMetric {
Latency(Duration),
FrameRendered {
timestamp: u64,
},
FrameDropped,
BufferUnderrun,
FirstByteReceived,
BufferLevel(f32),
AudioChunk {
samples: usize,
sample_rate: u32,
},
}Expand description
Streaming metrics to record
Variants§
Latency(Duration)
Latency measurement
FrameRendered
Frame rendered with timestamp
FrameDropped
Frame dropped
BufferUnderrun
Buffer underrun occurred
FirstByteReceived
First byte received
BufferLevel(f32)
Buffer level percentage
AudioChunk
Audio chunk processed
Trait Implementations§
Source§impl Clone for StreamingMetric
impl Clone for StreamingMetric
Source§fn clone(&self) -> StreamingMetric
fn clone(&self) -> StreamingMetric
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 StreamingMetric
impl RefUnwindSafe for StreamingMetric
impl Send for StreamingMetric
impl Sync for StreamingMetric
impl Unpin for StreamingMetric
impl UnsafeUnpin for StreamingMetric
impl UnwindSafe for StreamingMetric
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