pub enum RtcStatsType {
Show 22 variants Codec(Box<RtcCodecStats>), InboundRtp(Box<RtcInboundRtpStreamStats>), OutboundRtp(Box<RtcOutboundRtpStreamStats>), RemoteInboundRtp(Box<RtcRemoteInboundRtpStreamStats>), RemoteOutboundRtp(Box<RtcRemoteOutboundRtpStreamStats>), MediaSource(Box<MediaSourceStats>), Csrc(Box<RtpContributingSourceStats>), PeerConnection(Box<RtcPeerConnectionStats>), DataChannel(Box<DataChannelStats>), Stream(Box<MediaStreamStats>), Track(Box<TrackStats>), Transceiver(Box<RtcRtpTransceiverStats>), Sender(Box<SenderStatsKind>), Receiver(Box<ReceiverStatsKind>), Transport(Box<RtcTransportStats>), SctpTransport(Box<RtcSctpTransportStats>), CandidatePair(Box<RtcIceCandidatePairStats>), LocalCandidate(Box<RtcIceCandidateStats>), RemoteCandidate(Box<RtcIceCandidateStats>), Certificate(Box<RtcCertificateStats>), IceServer(Box<RtcIceServerStats>), Other,
}
Expand description

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>)

Statistics for an inbound RTP stream that is currently received with RTCPeerConnection object.

§

OutboundRtp(Box<RtcOutboundRtpStreamStats>)

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

When there are multiple RTP streams connected to the same sender, such as when using simulcast or RTX, there will be one RtcOutboundRtpStreamStats per RTP stream, with distinct values of the ssrc attribute, and all these senders will have a reference to the same “sender” object (of type RTCAudioSenderStats or RTCVideoSenderStats) and “track” object (of type RTCSenderAudioTrackAttachmentStats or RTCSenderVideoTrackAttachmentStats).

§

RemoteInboundRtp(Box<RtcRemoteInboundRtpStreamStats>)

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

It is measured at the remote endpoint and reported in a 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 RTCPeerConnection object.

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

§

MediaSource(Box<MediaSourceStats>)

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).

§

Csrc(Box<RtpContributingSourceStats>)

Statistics for a contributing source (CSRC) that contributed to an inbound RTP stream.

§

PeerConnection(Box<RtcPeerConnectionStats>)

Statistics related to the RTCPeerConnection object.

§

DataChannel(Box<DataChannelStats>)

Statistics related to each RTCDataChannel ID.

§

Stream(Box<MediaStreamStats>)

Contains statistics related to a specific MediaStream.

This is now obsolete.

§

Track(Box<TrackStats>)

Statistics related to a specific MediaStreamTrack’s attachment to an RTCRtpSender and the corresponding media-level metrics.

§

Transceiver(Box<RtcRtpTransceiverStats>)

Statistics related to a specific RTCRtpTransceiver.

§

Sender(Box<SenderStatsKind>)

Statistics related to a specific RTCRtpSender and the corresponding media-level metrics.

§

Receiver(Box<ReceiverStatsKind>)

Statistics related to a specific RTCRtpReceiver and the corresponding media-level metrics.

§

Transport(Box<RtcTransportStats>)

Transport statistics related to the RTCPeerConnection object.

§

SctpTransport(Box<RtcSctpTransportStats>)

SCTP transport statistics related to an RTCSctpTransport object.

§

CandidatePair(Box<RtcIceCandidatePairStats>)

ICE candidate pair statistics related to the 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 RTCIceTransport.

§

IceServer(Box<RtcIceServerStats>)

Information about the connection to an ICE server (e.g. STUN or TURN).

§

Other

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

Trait Implementations§

source§

impl Clone for RtcStatsType

source§

fn clone(&self) -> RtcStatsType

Returns a copy of the value. Read more
1.0.0 · source§

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 · source§

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<RtcStatsType> for RtcStatsType

source§

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

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

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

This method 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§

source§

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

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

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

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere 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.

source§

impl<T, U> Into<U> for Twhere 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.

source§

impl<T> ToOwned for Twhere T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

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

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

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

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

§

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 Twhere U: TryFrom<T>,

§

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.
source§

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