pub struct RtcPeerConnectionStats {
pub data_channels_opened: Option<u64>,
pub data_channels_closed: Option<u64>,
pub data_channels_requested: Option<u64>,
pub data_channels_accepted: Option<u64>,
}
Expand description
Fields§
§data_channels_opened: Option<u64>
Number of unique DataChannel
s that have entered the open
state
during their lifetime.
data_channels_closed: Option<u64>
Number of unique DataChannel
s that have left the open
state during
their lifetime (due to being closed by either end or the underlying
transport being closed). DataChannel
s that transition from
connecting
to closing
or closed
without ever being open
are not
counted in this number.
data_channels_requested: Option<u64>
Number of unique DataChannel
s returned from a successful
createDataChannel call on the RTCPeerConnection.
If the underlying data transport is not established, these may be in
the connecting
state.
data_channels_accepted: Option<u64>
Number of unique DataChannel
s signaled in a datachannel
event on
the RTCPeerConnection.
Trait Implementations§
source§impl Clone for RtcPeerConnectionStats
impl Clone for RtcPeerConnectionStats
source§fn clone(&self) -> RtcPeerConnectionStats
fn clone(&self) -> RtcPeerConnectionStats
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 RtcPeerConnectionStats
impl Debug for RtcPeerConnectionStats
source§impl<'de> Deserialize<'de> for RtcPeerConnectionStats
impl<'de> Deserialize<'de> for RtcPeerConnectionStats
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 RtcPeerConnectionStats
impl Hash for RtcPeerConnectionStats
source§impl PartialEq<RtcPeerConnectionStats> for RtcPeerConnectionStats
impl PartialEq<RtcPeerConnectionStats> for RtcPeerConnectionStats
source§fn eq(&self, other: &RtcPeerConnectionStats) -> bool
fn eq(&self, other: &RtcPeerConnectionStats) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for RtcPeerConnectionStats
impl Serialize for RtcPeerConnectionStats
impl Copy for RtcPeerConnectionStats
impl Eq for RtcPeerConnectionStats
impl StructuralEq for RtcPeerConnectionStats
impl StructuralPartialEq for RtcPeerConnectionStats
Auto Trait Implementations§
impl RefUnwindSafe for RtcPeerConnectionStats
impl Send for RtcPeerConnectionStats
impl Sync for RtcPeerConnectionStats
impl Unpin for RtcPeerConnectionStats
impl UnwindSafe for RtcPeerConnectionStats
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