Struct medea_client_api_proto::stats::TrackStats[][src]

pub struct TrackStats {
    pub track_identifier: String,
    pub remote_source: Option<bool>,
    pub ended: Option<bool>,
    pub kind: Option<TrackStatsKind>,
}

Statistics related to a specific MediaStreamTrack’s attachment to an RTCRtpSender and the corresponding media-level metrics.

RtcStatsType::Track variant.

Full doc on W3C.

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

impl Clone for TrackStats[src]

impl Debug for TrackStats[src]

impl<'de> Deserialize<'de> for TrackStats[src]

impl Eq for TrackStats[src]

impl Hash for TrackStats[src]

impl PartialEq<TrackStats> for TrackStats[src]

impl Serialize for TrackStats[src]

impl StructuralEq for TrackStats[src]

impl StructuralPartialEq for TrackStats[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.