pub struct RtcCodecStats {
pub payload_type: u32,
pub mime_type: String,
pub clock_rate: u32,
}Expand description
Statistics for a codec that is currently used by RTP streams being sent or received by RTCPeerConnection object.
RtcStatsType::Codec variant.
Fields§
§payload_type: u32Payload type as used in RTP encoding or decoding.
mime_type: StringThe codec MIME media type/subtype (e.g. video/vp8 or equivalent).
clock_rate: u32Media sampling rate.
Trait Implementations§
Source§impl Clone for RtcCodecStats
impl Clone for RtcCodecStats
Source§fn clone(&self) -> RtcCodecStats
fn clone(&self) -> RtcCodecStats
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 RtcCodecStats
impl Debug for RtcCodecStats
Source§impl<'de> Deserialize<'de> for RtcCodecStats
impl<'de> Deserialize<'de> for RtcCodecStats
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 RtcCodecStats
impl Hash for RtcCodecStats
Source§impl PartialEq for RtcCodecStats
impl PartialEq for RtcCodecStats
Source§impl Serialize for RtcCodecStats
impl Serialize for RtcCodecStats
impl Eq for RtcCodecStats
impl StructuralPartialEq for RtcCodecStats
Auto Trait Implementations§
impl Freeze for RtcCodecStats
impl RefUnwindSafe for RtcCodecStats
impl Send for RtcCodecStats
impl Sync for RtcCodecStats
impl Unpin for RtcCodecStats
impl UnwindSafe for RtcCodecStats
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