Struct medea_client_api_proto::stats::RtcStat
source · pub struct RtcStat {
pub id: StatId,
pub timestamp: HighResTimeStamp,
pub stats: RtcStatsType,
}
Expand description
Represents the stats object constructed by inspecting a specific monitored object.
Fields§
§id: StatId
Unique ID that is associated with the object that was inspected to produce this RTCStats object.
timestamp: HighResTimeStamp
Timestamp associated with this object.
The time is relative to the UNIX epoch (Jan 1, 1970, UTC).
For statistics that came from a remote source (e.g., from received RTCP
packets), timestamp represents the time at which the information
arrived at the local endpoint. The remote timestamp can be found in an
additional field in an RtcStat
-derived dictionary, if applicable.
stats: RtcStatsType
Actual stats of this RtcStat
.
All possible stats are described in the RtcStatsType
enum.
Trait Implementations§
source§impl<'de> Deserialize<'de> for RtcStat
impl<'de> Deserialize<'de> for RtcStat
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 PartialEq<RtcStat> for RtcStat
impl PartialEq<RtcStat> for RtcStat
impl StructuralPartialEq for RtcStat
Auto Trait Implementations§
impl RefUnwindSafe for RtcStat
impl Send for RtcStat
impl Sync for RtcStat
impl Unpin for RtcStat
impl UnwindSafe for RtcStat
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