Struct medea_client_api_proto::stats::DataChannelStats[][src]

pub struct DataChannelStats {
    pub label: Option<String>,
    pub protocol: Option<Protocol>,
    pub data_channel_identifier: Option<u64>,
    pub transport_id: Option<String>,
    pub state: Option<DataChannelState>,
    pub messages_sent: Option<u64>,
    pub bytes_sent: Option<u64>,
    pub messages_received: Option<u64>,
    pub bytes_received: Option<u64>,
}

Statistics related to each RTCDataChannel ID.

RtcStatsType::DataChannel variant.

Full doc on W3C.

Fields

label: Option<String>

label value of the RTCDataChannel object.

protocol: Option<Protocol>

protocol value of the RTCDataChannel object.

data_channel_identifier: Option<u64>

id attribute of the RTCDataChannel object.

transport_id: Option<String>

Stats object reference for the transport used to carry RTCDataChannel.

state: Option<DataChannelState>

readyState value of the RTCDataChannel object.

messages_sent: Option<u64>

Total number of API message events sent.

bytes_sent: Option<u64>

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

messages_received: Option<u64>

Total number of API message events received.

bytes_received: Option<u64>

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

Trait Implementations

impl Clone for DataChannelStats[src]

impl Debug for DataChannelStats[src]

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

impl Hash for DataChannelStats[src]

impl PartialEq<DataChannelStats> for DataChannelStats[src]

impl Serialize for DataChannelStats[src]

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