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
All known types of RtcStat
s.
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
impl Clone for RtcStatsType
source§fn clone(&self) -> RtcStatsType
fn clone(&self) -> RtcStatsType
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for RtcStatsType
impl Debug for RtcStatsType
source§impl<'de> Deserialize<'de> for RtcStatsType
impl<'de> Deserialize<'de> for RtcStatsType
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where __D: Deserializer<'de>,
source§impl Hash for RtcStatsType
impl Hash for RtcStatsType
source§impl PartialEq<RtcStatsType> for RtcStatsType
impl PartialEq<RtcStatsType> for RtcStatsType
source§fn eq(&self, other: &RtcStatsType) -> bool
fn eq(&self, other: &RtcStatsType) -> bool
self
and other
values to be equal, and is used
by ==
.