Skip to main content

RtcMetricsSnapshot

Struct RtcMetricsSnapshot 

Source
pub(super) struct RtcMetricsSnapshot {
Show 20 fields datagram_routes: [u64; 2], datagram_drops: [u64; 4], datagram_fallback_scans: u64, datagram_scan_users: u64, nacks: [u64; 2], rtx_packets_received_from_publisher: u64, rtx_payload_bytes_received_from_publisher: u64, rtcp_ingress_budget_drops: u64, output_budget_exhaustions: [u64; 3], output_budget_session_closes: u64, route_control: [u64; 5], keyframe_requests: [u64; 4], relay_enqueues: [u64; 3], relay_mailbox_depth_samples: u64, relay_mailbox_depth_total: u64, relay_drain_batches: u64, relay_drained_packets: u64, relay_drain_cap_hits: u64, remote_control_drops: [u64; 2], remote_packet_gate_convergence: [u64; 2],
}

Fields§

§datagram_routes: [u64; 2]§datagram_drops: [u64; 4]§datagram_fallback_scans: u64§datagram_scan_users: u64§nacks: [u64; 2]§rtx_packets_received_from_publisher: u64§rtx_payload_bytes_received_from_publisher: u64§rtcp_ingress_budget_drops: u64§output_budget_exhaustions: [u64; 3]§output_budget_session_closes: u64§route_control: [u64; 5]§keyframe_requests: [u64; 4]§relay_enqueues: [u64; 3]§relay_mailbox_depth_samples: u64§relay_mailbox_depth_total: u64§relay_drain_batches: u64§relay_drained_packets: u64§relay_drain_cap_hits: u64§remote_control_drops: [u64; 2]§remote_packet_gate_convergence: [u64; 2]

Implementations§

Source§

impl RtcMetricsSnapshot

Source

pub(super) fn datagram_routes(&self, path: RtcDatagramRoutePath) -> u64

Source

pub(super) fn datagram_drops(&self, reason: RtcDatagramDropReason) -> u64

Source

pub(super) const fn datagram_fallback_scans(&self) -> u64

Source

pub(super) const fn datagram_scan_users(&self) -> u64

Source

pub(super) fn nacks(&self, direction: RtcNackDirection) -> u64

Source

pub(super) const fn rtx_packets_received_from_publisher(&self) -> u64

Source

pub(super) const fn rtx_payload_bytes_received_from_publisher(&self) -> u64

Source

pub(super) const fn rtcp_ingress_budget_drops(&self) -> u64

Source

pub(super) fn output_budget_exhaustions( &self, limit: RtcOutputBudgetLimit, ) -> u64

Source

pub(super) const fn output_budget_session_closes(&self) -> u64

Source

pub(super) fn route_control(&self, outcome: RtcRouteControlOutcome) -> u64

Source

pub(super) fn keyframe_requests( &self, outcome: RtcKeyframeRequestOutcome, ) -> u64

Source

pub(super) fn relay_enqueues(&self, result: RtcRelayEnqueueResult) -> u64

Source

pub(super) const fn relay_mailbox_depth_samples(&self) -> u64

Source

pub(super) const fn relay_mailbox_depth_total(&self) -> u64

Source

pub(super) const fn relay_drain_batches(&self) -> u64

Source

pub(super) const fn relay_drained_packets(&self) -> u64

Source

pub(super) const fn relay_drain_cap_hits(&self) -> u64

Source

pub(super) fn remote_control_drops(&self, kind: RtcRemoteControlDropKind) -> u64

Source

pub(super) fn remote_packet_gate_convergence( &self, outcome: RtcRemotePacketGateConvergence, ) -> u64

Source

fn add_recorder(&mut self, recorder: &RtcMetricsRecorder)

Source

fn add_datagram_route(&mut self, path: RtcDatagramRoutePath, count: u64)

Source

fn add_datagram_drop(&mut self, reason: RtcDatagramDropReason, count: u64)

Source

fn add_nack(&mut self, direction: RtcNackDirection, count: u64)

Source

fn add_output_budget_exhaustion( &mut self, limit: RtcOutputBudgetLimit, count: u64, )

Source

fn add_route_control(&mut self, outcome: RtcRouteControlOutcome, count: u64)

Source

fn add_keyframe_request( &mut self, outcome: RtcKeyframeRequestOutcome, count: u64, )

Source

fn add_relay_enqueue(&mut self, result: RtcRelayEnqueueResult, count: u64)

Source

fn add_remote_control_drop( &mut self, kind: RtcRemoteControlDropKind, count: u64, )

Source

fn add_remote_packet_gate_convergence( &mut self, outcome: RtcRemotePacketGateConvergence, count: u64, )

Trait Implementations§

Source§

impl Debug for RtcMetricsSnapshot

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Default for RtcMetricsSnapshot

Source§

fn default() -> RtcMetricsSnapshot

Returns the “default value” for a type. Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

§

impl<T> FutureExt for T

§

fn with_context(self, otel_cx: Context) -> WithContext<Self>

Attaches the provided Context to this type, returning a WithContext wrapper. Read more
§

fn with_current_context(self) -> WithContext<Self>

Attaches the current Context to this type, returning a WithContext wrapper. Read more
§

impl<T> Instrument for T

§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided [Span], returning an Instrumented wrapper. Read more
§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

§

impl<T> PolicyExt for T
where T: ?Sized,

§

fn and<P, B, E>(self, other: P) -> And<T, P>
where T: Policy<B, E>, P: Policy<B, E>,

Create a new Policy that returns [Action::Follow] only if self and other return Action::Follow. Read more
§

fn or<P, B, E>(self, other: P) -> Or<T, P>
where T: Policy<B, E>, P: Policy<B, E>,

Create a new Policy that returns [Action::Follow] if either self or other returns Action::Follow. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

§

fn vzip(self) -> V

§

impl<T> WithSubscriber for T

§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a [WithDispatch] wrapper. Read more
§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a [WithDispatch] wrapper. Read more
§

impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
where ST: ?Sized, DT: ?Sized,

§

impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
where ST: ?Sized, DT: ?Sized,

§

impl<A, B, T> HttpServerConnExec<A, B> for T
where B: Body,

§

impl<T> Read<Exclusive, BecauseExclusive> for T
where T: ?Sized,