Struct medea_client_api_proto::stats::MediaSourceStats
source · pub struct MediaSourceStats {
pub track_identifier: Option<String>,
pub kind: MediaKind,
}
Expand description
Statistics for the media produced by a MediaStreamTrack that is currently attached to an RTCRtpSender. This reflects the media that is fed to the encoder after getUserMedia constraints have been applied (i.e. not the raw media produced by the camera).
RtcStatsType::MediaSource
variant.
Fields§
§track_identifier: Option<String>
Value of the MediaStreamTrack’s ID attribute.
kind: MediaKind
Fields which should be in the RtcStat
based on kind
.
Trait Implementations§
source§impl Clone for MediaSourceStats
impl Clone for MediaSourceStats
source§fn clone(&self) -> MediaSourceStats
fn clone(&self) -> MediaSourceStats
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 MediaSourceStats
impl Debug for MediaSourceStats
source§impl<'de> Deserialize<'de> for MediaSourceStats
impl<'de> Deserialize<'de> for MediaSourceStats
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 MediaSourceStats
impl Hash for MediaSourceStats
source§impl PartialEq<MediaSourceStats> for MediaSourceStats
impl PartialEq<MediaSourceStats> for MediaSourceStats
source§fn eq(&self, other: &MediaSourceStats) -> bool
fn eq(&self, other: &MediaSourceStats) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for MediaSourceStats
impl Serialize for MediaSourceStats
impl StructuralPartialEq for MediaSourceStats
Auto Trait Implementations§
impl RefUnwindSafe for MediaSourceStats
impl Send for MediaSourceStats
impl Sync for MediaSourceStats
impl Unpin for MediaSourceStats
impl UnwindSafe for MediaSourceStats
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