pub enum RtcOutboundRtpStreamMediaType {
Audio {
total_samples_sent: Option<u64>,
voice_activity_flag: Option<bool>,
},
Video {
frame_width: Option<u64>,
frame_height: Option<u64>,
frames_per_second: Option<Float>,
},
}Expand description
RtcStat fields of RtcStatsType::OutboundRtp type based on its
kind.
Variants§
Audio
Fields when the kind is audio.
Fields
Video
Fields when the kind is video.
Fields
§
frame_width: Option<u64>Width of the last encoded frame.
The resolution of the encoded frame may be lower than the media source (see RTCVideoSourceStats.width).
Before the first frame is encoded this attribute is missing.
§
frame_height: Option<u64>Height of the last encoded frame.
The resolution of the encoded frame may be lower than the media source (see RTCVideoSourceStats.height).
Before the first frame is encoded this attribute is missing.
§
frames_per_second: Option<Float>Number of encoded frames during the last second.
This may be lower than the media source frame rate (see RTCVideoSourceStats.framesPerSecond).
Trait Implementations§
source§impl Clone for RtcOutboundRtpStreamMediaType
impl Clone for RtcOutboundRtpStreamMediaType
source§fn clone(&self) -> RtcOutboundRtpStreamMediaType
fn clone(&self) -> RtcOutboundRtpStreamMediaType
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<'de> Deserialize<'de> for RtcOutboundRtpStreamMediaType
impl<'de> Deserialize<'de> for RtcOutboundRtpStreamMediaType
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 RtcOutboundRtpStreamMediaType
impl Hash for RtcOutboundRtpStreamMediaType
source§impl PartialEq for RtcOutboundRtpStreamMediaType
impl PartialEq for RtcOutboundRtpStreamMediaType
source§fn eq(&self, other: &RtcOutboundRtpStreamMediaType) -> bool
fn eq(&self, other: &RtcOutboundRtpStreamMediaType) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for RtcOutboundRtpStreamMediaType
impl StructuralPartialEq for RtcOutboundRtpStreamMediaType
Auto Trait Implementations§
impl Freeze for RtcOutboundRtpStreamMediaType
impl RefUnwindSafe for RtcOutboundRtpStreamMediaType
impl Send for RtcOutboundRtpStreamMediaType
impl Sync for RtcOutboundRtpStreamMediaType
impl Unpin for RtcOutboundRtpStreamMediaType
impl UnwindSafe for RtcOutboundRtpStreamMediaType
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit)source§impl<T> CloneToUninit for Twhere
T: Copy,
impl<T> CloneToUninit for Twhere
T: Copy,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit)