pub struct DataChannelStats {
pub timestamp: Instant,
pub stats_type: RTCStatsType,
pub id: String,
pub bytes_received: usize,
pub bytes_sent: usize,
pub data_channel_identifier: u16,
pub label: String,
pub messages_received: usize,
pub messages_sent: usize,
pub protocol: String,
pub state: RTCDataChannelState,
}
Formats the value using the given formatter.
Read more
Serialize this value into the given Serde serializer.
Read more
Immutably borrows from an owned value.
Read more
Mutably borrows from an owned value.
Read more
Returns the argument unchanged.
Calls U::from(self)
.
That is, this conversion is whatever the implementation of
From<T> for U
chooses to do.
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.