Struct medea_client_api_proto::stats::TrackStats
source · pub struct TrackStats {
pub track_identifier: String,
pub remote_source: Option<bool>,
pub ended: Option<bool>,
pub kind: Option<TrackStatsKind>,
}
Expand description
Statistics related to a specific MediaStreamTrack’s attachment to an RTCRtpSender and the corresponding media-level metrics.
RtcStatsType::Track
variant.
Fields§
§track_identifier: String
id
property of the track.
remote_source: Option<bool>
true
if the source is remote, for instance if it is sourced from
another host via an RTCPeerConnection. false
otherwise.
ended: Option<bool>
Reflection of the “ended” state of the track.
kind: Option<TrackStatsKind>
Either audio
or video
.
This reflects the kind
attribute of the MediaStreamTrack.
Trait Implementations§
source§impl Clone for TrackStats
impl Clone for TrackStats
source§fn clone(&self) -> TrackStats
fn clone(&self) -> TrackStats
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 TrackStats
impl Debug for TrackStats
source§impl<'de> Deserialize<'de> for TrackStats
impl<'de> Deserialize<'de> for TrackStats
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 TrackStats
impl Hash for TrackStats
source§impl PartialEq<TrackStats> for TrackStats
impl PartialEq<TrackStats> for TrackStats
source§fn eq(&self, other: &TrackStats) -> bool
fn eq(&self, other: &TrackStats) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for TrackStats
impl Serialize for TrackStats
impl Eq for TrackStats
impl StructuralEq for TrackStats
impl StructuralPartialEq for TrackStats
Auto Trait Implementations§
impl RefUnwindSafe for TrackStats
impl Send for TrackStats
impl Sync for TrackStats
impl Unpin for TrackStats
impl UnwindSafe for TrackStats
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