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<u64>,
},
}
Expand description
RtcStat
fields of RtcStatsType::OutboundRtp
type based on
mediaType
.
Variants§
Audio
Fields
Fields when mediaType
is audio
.
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<u64>
Number of encoded frames during the last second.
This may be lower than the media source frame rate (see RTCVideoSourceStats.framesPerSecond).
Fields when mediaType
is video
.
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<RtcOutboundRtpStreamMediaType> for RtcOutboundRtpStreamMediaType
impl PartialEq<RtcOutboundRtpStreamMediaType> for RtcOutboundRtpStreamMediaType
source§fn eq(&self, other: &RtcOutboundRtpStreamMediaType) -> bool
fn eq(&self, other: &RtcOutboundRtpStreamMediaType) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for RtcOutboundRtpStreamMediaType
impl Eq for RtcOutboundRtpStreamMediaType
impl StructuralEq for RtcOutboundRtpStreamMediaType
impl StructuralPartialEq for RtcOutboundRtpStreamMediaType
Auto Trait Implementations§
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