#[non_exhaustive]pub enum RtpStatUnit {
Bytes,
Octets,
Packets,
Percent,
Mos,
Milliseconds,
Ratio,
Count,
}Expand description
Unit of measurement for an RTP statistic channel variable.
Returned by CoreMediaVariable::unit() to provide display and
categorization metadata for RTP statistics. Use Display to format
the unit as a human-readable suffix (e.g., "bytes", "ms", "MOS").
Dimensionless statistics (Ratio, Count)
display as an empty string.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Bytes
Raw or media byte count.
Octets
RTCP octet count (RFC 3550).
Packets
Packet count (RTP, RTCP, or jitter buffer size).
Percent
Quality percentage (R-factor).
Mos
Mean Opinion Score.
Milliseconds
Jitter variance or mean interval in milliseconds.
Ratio
Dimensionless ratio (loss rate, burst rate).
Count
Dimensionless count (flaw total).
Trait Implementations§
Source§impl Clone for RtpStatUnit
impl Clone for RtpStatUnit
Source§fn clone(&self) -> RtpStatUnit
fn clone(&self) -> RtpStatUnit
Returns a duplicate 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 RtpStatUnit
impl Debug for RtpStatUnit
Source§impl<'de> Deserialize<'de> for RtpStatUnit
impl<'de> Deserialize<'de> for RtpStatUnit
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 Display for RtpStatUnit
impl Display for RtpStatUnit
Source§impl Hash for RtpStatUnit
impl Hash for RtpStatUnit
Source§impl PartialEq for RtpStatUnit
impl PartialEq for RtpStatUnit
Source§impl Serialize for RtpStatUnit
impl Serialize for RtpStatUnit
impl Copy for RtpStatUnit
impl Eq for RtpStatUnit
impl StructuralPartialEq for RtpStatUnit
Auto Trait Implementations§
impl Freeze for RtpStatUnit
impl RefUnwindSafe for RtpStatUnit
impl Send for RtpStatUnit
impl Sync for RtpStatUnit
impl Unpin for RtpStatUnit
impl UnsafeUnpin for RtpStatUnit
impl UnwindSafe for RtpStatUnit
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.