pub(super) struct RtpMetricsSnapshot {
packets: [u64; 2],
payload_bytes: [u64; 2],
forwarded_packets: [u64; 3],
forwarded_payload_bytes: [u64; 3],
decoder_refreshes: [u64; 2],
worker_snapshots: Vec<RtpWorkerMetricsSnapshot>,
}Fields§
§packets: [u64; 2]§payload_bytes: [u64; 2]§forwarded_packets: [u64; 3]§forwarded_payload_bytes: [u64; 3]§decoder_refreshes: [u64; 2]§worker_snapshots: Vec<RtpWorkerMetricsSnapshot>Implementations§
Source§impl RtpMetricsSnapshot
impl RtpMetricsSnapshot
pub(super) fn packets(&self, direction: RtpFlowDirection) -> u64
pub(super) fn payload_bytes(&self, direction: RtpFlowDirection) -> u64
pub(super) fn forwarded_packets( &self, destination: RtpForwardDestinationKind, ) -> u64
pub(super) fn forwarded_payload_bytes( &self, destination: RtpForwardDestinationKind, ) -> u64
pub(super) fn decoder_refreshes(&self, scope: RtpDecoderRefreshScope) -> u64
pub(super) fn worker_snapshots(&self) -> &[RtpWorkerMetricsSnapshot]
fn add_recorder(&mut self, recorder: &RtpMetricsRecorder)
fn add_flow( &mut self, direction: RtpFlowDirection, packets: u64, payload_bytes: u64, )
fn add_forwarded( &mut self, destination: RtpForwardDestinationKind, packets: u64, payload_bytes: u64, )
fn add_decoder_refresh(&mut self, scope: RtpDecoderRefreshScope, refreshes: u64)
Trait Implementations§
Source§impl Debug for RtpMetricsSnapshot
impl Debug for RtpMetricsSnapshot
Source§impl Default for RtpMetricsSnapshot
impl Default for RtpMetricsSnapshot
Source§fn default() -> RtpMetricsSnapshot
fn default() -> RtpMetricsSnapshot
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for RtpMetricsSnapshot
impl RefUnwindSafe for RtpMetricsSnapshot
impl Send for RtpMetricsSnapshot
impl Sync for RtpMetricsSnapshot
impl Unpin for RtpMetricsSnapshot
impl UnsafeUnpin for RtpMetricsSnapshot
impl UnwindSafe for RtpMetricsSnapshot
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