pub struct RtcDataChannelStats {
pub label: Option<String>,
pub protocol: Option<String>,
pub data_channel_identifier: Option<u16>,
pub state: Option<RtcDataChannelState>,
pub messages_sent: Option<u32>,
pub bytes_sent: Option<u64>,
pub messages_received: Option<u32>,
pub bytes_received: Option<u64>,
}Expand description
Statistics related to each RTCDataChannel ID.
Fields§
§label: Option<String>label value of the RTCDataChannel object.
protocol: Option<String>protocol value of the RTCDataChannel object.
data_channel_identifier: Option<u16>id attribute of the RTCDataChannel object.
state: Option<RtcDataChannelState>readyState value of the RTCDataChannel object.
messages_sent: Option<u32>Total number of API message events sent.
bytes_sent: Option<u64>Total number of payload bytes sent on the RTCDataChannel.
messages_received: Option<u32>Total number of API message events received.
bytes_received: Option<u64>Total number of bytes received on the RTCDataChannel.
Trait Implementations§
Source§impl Clone for RtcDataChannelStats
impl Clone for RtcDataChannelStats
Source§fn clone(&self) -> RtcDataChannelStats
fn clone(&self) -> RtcDataChannelStats
Returns a duplicate of the value. Read more
1.0.0§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for RtcDataChannelStats
impl Debug for RtcDataChannelStats
Source§impl<'de> Deserialize<'de> for RtcDataChannelStats
impl<'de> Deserialize<'de> for RtcDataChannelStats
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 RtcDataChannelStats
impl Hash for RtcDataChannelStats
Source§impl PartialEq for RtcDataChannelStats
impl PartialEq for RtcDataChannelStats
Source§impl Serialize for RtcDataChannelStats
impl Serialize for RtcDataChannelStats
impl Eq for RtcDataChannelStats
impl StructuralPartialEq for RtcDataChannelStats
Auto Trait Implementations§
impl Freeze for RtcDataChannelStats
impl RefUnwindSafe for RtcDataChannelStats
impl Send for RtcDataChannelStats
impl Sync for RtcDataChannelStats
impl Unpin for RtcDataChannelStats
impl UnwindSafe for RtcDataChannelStats
Blanket Implementations§
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)