Struct medea_client_api_proto::stats::RtcOutboundRtpStreamStats[][src]

pub struct RtcOutboundRtpStreamStats {
    pub track_id: Option<String>,
    pub media_type: RtcOutboundRtpStreamMediaType,
    pub bytes_sent: u64,
    pub packets_sent: u64,
    pub media_source_id: Option<String>,
}

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

RtcStatsType::OutboundRtp variant.

Full doc on W3C.

Fields

track_id: Option<String>

ID of the stats object representing the current track attachment to the sender of this stream.

media_type: RtcOutboundRtpStreamMediaType

Fields which should be in the RtcStat based on mediaType.

bytes_sent: u64

Total number of bytes sent for this SSRC.

packets_sent: u64

Total number of RTP packets sent for this SSRC.

media_source_id: Option<String>

ID of the stats object representing the track currently attached to the sender of this stream.

Trait Implementations

impl Clone for RtcOutboundRtpStreamStats[src]

impl Debug for RtcOutboundRtpStreamStats[src]

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

impl Hash for RtcOutboundRtpStreamStats[src]

impl PartialEq<RtcOutboundRtpStreamStats> for RtcOutboundRtpStreamStats[src]

impl Serialize for RtcOutboundRtpStreamStats[src]

impl StructuralPartialEq for RtcOutboundRtpStreamStats[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.