pub enum OutboundRtpMediaType {
Audio {
total_samples_sent: Option<u64>,
voice_activity_flag: Option<bool>,
},
Video(Box<RtcOutboundRtpStreamVideo>),
}Expand description
RtcStat fields of RtcStatsType::OutboundRtp type based on its
kind.
Variants§
Audio
Fields when the kind is audio.
Fields
§
total_samples_sent: Option<u64>Total number of samples that have been sent over the RTP stream.
Video(Box<RtcOutboundRtpStreamVideo>)
Fields when the kind is video.
Trait Implementations§
Source§impl Clone for OutboundRtpMediaType
impl Clone for OutboundRtpMediaType
Source§fn clone(&self) -> OutboundRtpMediaType
fn clone(&self) -> OutboundRtpMediaType
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 OutboundRtpMediaType
impl Debug for OutboundRtpMediaType
Source§impl<'de> Deserialize<'de> for OutboundRtpMediaType
impl<'de> Deserialize<'de> for OutboundRtpMediaType
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 OutboundRtpMediaType
impl Hash for OutboundRtpMediaType
Source§impl PartialEq for OutboundRtpMediaType
impl PartialEq for OutboundRtpMediaType
Source§impl Serialize for OutboundRtpMediaType
impl Serialize for OutboundRtpMediaType
impl StructuralPartialEq for OutboundRtpMediaType
Auto Trait Implementations§
impl Freeze for OutboundRtpMediaType
impl RefUnwindSafe for OutboundRtpMediaType
impl Send for OutboundRtpMediaType
impl Sync for OutboundRtpMediaType
impl Unpin for OutboundRtpMediaType
impl UnsafeUnpin for OutboundRtpMediaType
impl UnwindSafe for OutboundRtpMediaType
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