pub struct StreamStatsAccumulator { /* private fields */ }Implementations§
Source§impl StreamStatsAccumulator
impl StreamStatsAccumulator
Sourcepub fn record_packet(&self)
pub fn record_packet(&self)
Record a received packet.
Sourcepub fn record_resend(&self)
pub fn record_resend(&self)
Record a resend request.
Sourcepub fn record_resend_ranges(&self, ranges: u64)
pub fn record_resend_ranges(&self, ranges: u64)
Record the number of packet ranges covered by a resend request.
Sourcepub fn record_drop(&self)
pub fn record_drop(&self)
Record a dropped frame event.
Sourcepub fn record_backpressure_drop(&self)
pub fn record_backpressure_drop(&self)
Record a drop caused by application backpressure.
Sourcepub fn record_late_frame(&self)
pub fn record_late_frame(&self)
Record a frame that missed its presentation deadline.
Sourcepub fn record_pool_exhaustion(&self)
pub fn record_pool_exhaustion(&self)
Record an exhausted frame buffer pool event.
Sourcepub fn record_frame(&self, bytes: usize, latency: Option<Duration>)
pub fn record_frame(&self, bytes: usize, latency: Option<Duration>)
Update metrics for a fully received frame.
Sourcepub fn snapshot(&self) -> StreamStats
pub fn snapshot(&self) -> StreamStats
Produce a snapshot of the accumulated statistics.
Trait Implementations§
Source§impl Clone for StreamStatsAccumulator
impl Clone for StreamStatsAccumulator
Source§fn clone(&self) -> StreamStatsAccumulator
fn clone(&self) -> StreamStatsAccumulator
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 StreamStatsAccumulator
impl Debug for StreamStatsAccumulator
Auto Trait Implementations§
impl Freeze for StreamStatsAccumulator
impl RefUnwindSafe for StreamStatsAccumulator
impl Send for StreamStatsAccumulator
impl Sync for StreamStatsAccumulator
impl Unpin for StreamStatsAccumulator
impl UnwindSafe for StreamStatsAccumulator
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