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>,
}Expand description
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§
Source§impl Clone for DataChannelStats
impl Clone for DataChannelStats
Source§fn clone(&self) -> DataChannelStats
fn clone(&self) -> DataChannelStats
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for DataChannelStats
impl Debug for DataChannelStats
Source§impl<'de> Deserialize<'de> for DataChannelStats
impl<'de> Deserialize<'de> for DataChannelStats
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>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Hash for DataChannelStats
impl Hash for DataChannelStats
Source§impl PartialEq for DataChannelStats
impl PartialEq for DataChannelStats
Source§impl Serialize for DataChannelStats
impl Serialize for DataChannelStats
impl Eq for DataChannelStats
impl StructuralPartialEq for DataChannelStats
Auto Trait Implementations§
impl Freeze for DataChannelStats
impl RefUnwindSafe for DataChannelStats
impl Send for DataChannelStats
impl Sync for DataChannelStats
impl Unpin for DataChannelStats
impl UnwindSafe for DataChannelStats
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more