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.
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 this RTCPeerConnection object.
RTX streams do not show up as separate RtcInboundRtpStreamStats
objects but affect the RtcReceivedRtpStreamStats::packets_received,
RtcInboundRtpStreamStats::bytes_received,
RtcInboundRtpStreamStats::retransmitted_packets_received and
RtcInboundRtpStreamStats::retransmitted_bytes_received counters of
the relevant RtcInboundRtpStreamStats objects.
FEC streams do not show up as separate RtcInboundRtpStreamStats
objects but affect the RtcReceivedRtpStreamStats::packets_received,
RtcInboundRtpStreamStats::bytes_received,
RtcInboundRtpStreamStats::fec_packets_received and
RtcInboundRtpStreamStats::fec_bytes_received counters of the
relevant RtcInboundRtpStreamStats objects.
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
impl Clone for RtcStatsType
Source§fn clone(&self) -> RtcStatsType
fn clone(&self) -> RtcStatsType
1.0.0§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 for RtcStatsType
impl PartialEq for RtcStatsType
Source§impl Serialize for RtcStatsType
impl Serialize for RtcStatsType
impl StructuralPartialEq for RtcStatsType
Auto Trait Implementations§
impl Freeze for RtcStatsType
impl RefUnwindSafe for RtcStatsType
impl Send for RtcStatsType
impl Sync for RtcStatsType
impl Unpin for RtcStatsType
impl UnwindSafe for RtcStatsType
Blanket Implementations§
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
clone_to_uninit)