pub(super) struct RtpWorkerMetricsSnapshot {
media_worker_id: usize,
packets: [u64; 2],
payload_bytes: [u64; 2],
forwarded_packets: [u64; 3],
forwarded_payload_bytes: [u64; 3],
}Fields§
§media_worker_id: usize§packets: [u64; 2]§payload_bytes: [u64; 2]§forwarded_packets: [u64; 3]§forwarded_payload_bytes: [u64; 3]Implementations§
Source§impl RtpWorkerMetricsSnapshot
impl RtpWorkerMetricsSnapshot
fn new(media_worker_id: usize) -> Self
pub(super) const fn media_worker_id(&self) -> usize
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
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, )
Trait Implementations§
Source§impl Debug for RtpWorkerMetricsSnapshot
impl Debug for RtpWorkerMetricsSnapshot
Source§impl Default for RtpWorkerMetricsSnapshot
impl Default for RtpWorkerMetricsSnapshot
Source§fn default() -> RtpWorkerMetricsSnapshot
fn default() -> RtpWorkerMetricsSnapshot
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for RtpWorkerMetricsSnapshot
impl RefUnwindSafe for RtpWorkerMetricsSnapshot
impl Send for RtpWorkerMetricsSnapshot
impl Sync for RtpWorkerMetricsSnapshot
impl Unpin for RtpWorkerMetricsSnapshot
impl UnsafeUnpin for RtpWorkerMetricsSnapshot
impl UnwindSafe for RtpWorkerMetricsSnapshot
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