RtcStatsType

Enum RtcStatsType 

Source
pub enum RtcStatsType {
Show 15 variants Codec(Box<RtcCodecStats>), InboundRtp(Box<RtcInboundRtpStreamStats>), OutboundRtp(Box<RtcOutboundRtpStreamStats>), RemoteInboundRtp(Box<RtcRemoteInboundRtpStreamStats>), RemoteOutboundRtp(Box<RtcRemoteOutboundRtpStreamStats>), MediaSource(Box<RtcMediaSourceStats>), MediaPlayout(Box<RtcAudioPlayoutStats>), PeerConnection(Box<RtcPeerConnectionStats>), DataChannel(Box<RtcDataChannelStats>), Transport(Box<RtcTransportStats>), CandidatePair(Box<RtcIceCandidatePairStats>), LocalCandidate(Box<RtcIceCandidateStats>), RemoteCandidate(Box<RtcIceCandidateStats>), Certificate(Box<RtcCertificateStats>), Other,
}
Expand description

Possible types of RtcStats.

Full doc on W3C.

Variants§

§

Codec(Box<RtcCodecStats>)

Statistics for a codec that is currently used by RTP streams being sent or received by RTCPeerConnection object.

§

InboundRtp(Box<RtcInboundRtpStreamStats>)

§

OutboundRtp(Box<RtcOutboundRtpStreamStats>)

Statistics for an outbound RTP stream that is currently sent with this RTCPeerConnection object.

When there are multiple RTP streams connected to the same sender due to using simulcast, there will be one RtcOutboundRtpStreamStats per RTP stream, with distinct values of the SSRC member. RTX streams do not show up as separate RtcOutboundRtpStreamStats objects but affect the RtcSentRtpStreamStats::packets_sent, RtcSentRtpStreamStats::bytes_sent, RtcOutboundRtpStreamStats::retransmitted_packets_sent and RtcOutboundRtpStreamStats::retransmitted_bytes_sent counters of the relevant RtcOutboundRtpStreamStats objects.

§

RemoteInboundRtp(Box<RtcRemoteInboundRtpStreamStats>)

Statistics for the remote endpoint’s inbound RTP stream corresponding to an outbound stream that is currently sent with this RTCPeerConnection object.

It is measured at the remote endpoint and reported in an RTCP Receiver Report (RR) or RTCP Extended Report (XR).

§

RemoteOutboundRtp(Box<RtcRemoteOutboundRtpStreamStats>)

Statistics for the remote endpoint’s outbound RTP stream corresponding to an inbound stream that is currently received with this RTCPeerConnection object.

It is measured at the remote endpoint and reported in an RTCP Sender Report (SR).

§

MediaSource(Box<RtcMediaSourceStats>)

Statistics for the media produced by a MediaStreamTrack that is currently attached to an RTCRtpSender.

This reflects the media that is fed to the encoder; after getUserMedia() constraints have been applied (i.e. not the raw media produced by the camera).

§

MediaPlayout(Box<RtcAudioPlayoutStats>)

Statistics related to audio playout.

§

PeerConnection(Box<RtcPeerConnectionStats>)

Statistics related to an RTCPeerConnection object.

§

DataChannel(Box<RtcDataChannelStats>)

Statistics related to each RTCDataChannel ID.

§

Transport(Box<RtcTransportStats>)

Transport statistics related to an RTCPeerConnection object.

It is accessed by the RtcTransportStats.

§

CandidatePair(Box<RtcIceCandidatePairStats>)

ICE candidate pair statistics related to RTCIceTransport objects.

A candidate pair that is not the current pair for a transport is deleted when the RTCIceTransport does an ICE restart, at the time the state changes to new. The candidate pair that is the current pair for a transport is deleted after an ICE restart when the RTCIceTransport switches to using a candidate pair generated from the new candidates; this time doesn’t correspond to any other externally observable event.

§

LocalCandidate(Box<RtcIceCandidateStats>)

ICE local candidate statistics related to the RTCIceTransport objects.

A local candidate is deleted when the RTCIceTransport does an ICE restart, and the candidate is no longer a member of any non-deleted candidate pair.

§

RemoteCandidate(Box<RtcIceCandidateStats>)

ICE remote candidate statistics related to the RTCIceTransport objects.

A remote candidate is deleted when the RTCIceTransport does an ICE restart, and the candidate is no longer a member of any non-deleted candidate pair.

§

Certificate(Box<RtcCertificateStats>)

Information about a certificate used by the RTCIceTransport.

It is accessed by RtcCertificateStats.

§

Other

Disabled or unknown variants of stats will be deserialized as Other.

Trait Implementations§

Source§

impl Clone for RtcStatsType

Source§

fn clone(&self) -> RtcStatsType

Returns a duplicate of the value. Read more
1.0.0§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for RtcStatsType

Source§

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

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

impl<'de> Deserialize<'de> for RtcStatsType

Source§

fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>
where __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
Source§

impl Hash for RtcStatsType

Source§

fn hash<__H: Hasher>(&self, state: &mut __H)

Feeds this value into the given Hasher. Read more
1.3.0§

fn hash_slice<H>(data: &[Self], state: &mut H)
where H: Hasher, Self: Sized,

Feeds a slice of this type into the given Hasher. Read more
Source§

impl PartialEq for RtcStatsType

Source§

fn eq(&self, other: &RtcStatsType) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl Serialize for RtcStatsType

Source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more
Source§

impl StructuralPartialEq for RtcStatsType

Auto Trait Implementations§

Blanket Implementations§

§

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

§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
§

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

§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
§

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

§

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

Mutably borrows from an owned value. Read more
§

impl<T> CloneToUninit for T
where T: Clone,

§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
§

impl<T> From<T> for T

§

fn from(t: T) -> T

Returns the argument unchanged.

§

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

§

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> ToOwned for T
where T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
§

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

§

type Error = Infallible

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

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

Performs the conversion.
§

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

§

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

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

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

Performs the conversion.
Source§

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

Source§

fn vzip(self) -> V

Source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,