Enum medea_client_api_proto::stats::RtcStatsType[][src]

pub enum RtcStatsType {
    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,
}

Variants

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

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

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

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

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

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.

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.

Statistics related to a specific RTCRtpTransceiver.

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

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

Transport statistics related to the RTCPeerConnection object.

SctpTransport(Box<RtcSctpTransportStats>)

SCTP transport statistics related to an RTCSctpTransport object.

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.

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

impl Clone for RtcStatsType[src]

impl Debug for RtcStatsType[src]

impl<'de> Deserialize<'de> for RtcStatsType[src]

impl Hash for RtcStatsType[src]

impl PartialEq<RtcStatsType> for RtcStatsType[src]

impl Serialize for RtcStatsType[src]

impl StructuralPartialEq for RtcStatsType[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

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

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

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

The type returned in the event of a conversion error.