Struct medea_client_api_proto::stats::RtcTransportStats
source · 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>,
}
Expand description
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.
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§
source§impl Clone for RtcTransportStats
impl Clone for RtcTransportStats
source§fn clone(&self) -> RtcTransportStats
fn clone(&self) -> RtcTransportStats
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for RtcTransportStats
impl Debug for RtcTransportStats
source§impl<'de> Deserialize<'de> for RtcTransportStats
impl<'de> Deserialize<'de> for RtcTransportStats
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 RtcTransportStats
impl Hash for RtcTransportStats
source§impl PartialEq<RtcTransportStats> for RtcTransportStats
impl PartialEq<RtcTransportStats> for RtcTransportStats
source§fn eq(&self, other: &RtcTransportStats) -> bool
fn eq(&self, other: &RtcTransportStats) -> bool
self
and other
values to be equal, and is used
by ==
.