Struct medea_client_api_proto::stats::RtcTransportStats[][src]

pub struct RtcTransportStats {
    pub packets_sent: Option<u64>,
    pub packets_received: Option<u64>,
    pub bytes_sent: Option<u64>,
    pub bytes_received: Option<u64>,
    pub ice_role: Option<IceRole>,
}

Representation of the stats corresponding to an RTCDtlsTransport and its underlying RTCIceTransport.

When RTCP multiplexing is used, one transport is used for both RTP and RTCP. Otherwise, RTP and RTCP will be sent on separate transports, and rtcpTransportStatsId can be used to pair the resulting RtcTransportStats objects. Additionally, when bundling is used, a single transport will be used for all MediaStreamTracks in the bundle group. If bundling is not used, different MediaStreamTracks will use different transports. RTCP multiplexing and bundling are described in WebRTC.

RtcStatsType::Transport variant.

Full doc on W3C.

Fields

packets_sent: Option<u64>

Total number of packets sent over this transport.

packets_received: Option<u64>

Total number of packets received on this transport.

bytes_sent: Option<u64>

Total number of payload bytes sent on this RTCPeerConnection, i.e. not including headers or padding.

bytes_received: Option<u64>

Total number of bytes received on this RTCPeerConnection, i.e. not including headers or padding.

ice_role: Option<IceRole>

Set to the current value of the role attribute of the underlying RTCDtlsTransport’s transport.

Trait Implementations

impl Clone for RtcTransportStats[src]

impl Copy for RtcTransportStats[src]

impl Debug for RtcTransportStats[src]

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

impl Eq for RtcTransportStats[src]

impl Hash for RtcTransportStats[src]

impl PartialEq<RtcTransportStats> for RtcTransportStats[src]

impl Serialize for RtcTransportStats[src]

impl StructuralEq for RtcTransportStats[src]

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