pub struct DataChannelStats {
pub label: Option<String>,
pub id: Option<u16>,
pub state: DataChannelState,
pub messages_sent: u32,
pub bytes_sent: u64,
pub messages_received: u32,
pub bytes_received: u64,
}Expand description
One data channel’s counters (RTCDataChannelStats).
A message is what the application sent or received in one call, however
many SCTP chunks carried it. On a chunked channel (see
crate::DcChunking), libwebrtc sees each frame as a message, so these
count frames there.
Fields§
§label: Option<String>The channel’s label, which may be empty; None when absent or longer
than 62 bytes.
id: Option<u16>The SCTP stream id; None before it is assigned.
state: DataChannelState§messages_sent: u32§bytes_sent: u64§messages_received: u32§bytes_received: u64Trait Implementations§
Source§impl Clone for DataChannelStats
impl Clone for DataChannelStats
Source§impl Debug for DataChannelStats
impl Debug for DataChannelStats
impl Eq for DataChannelStats
Source§impl PartialEq for DataChannelStats
impl PartialEq 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 UnsafeUnpin 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