pub struct BaseStatsRef<'a>(/* private fields */);
Expand description
Reference to a deserialized BaseStats.
Implementations§
Source§impl<'a> BaseStatsRef<'a>
impl<'a> BaseStatsRef<'a>
Sourcepub fn timestamp(&self) -> Result<u64>
pub fn timestamp(&self) -> Result<u64>
Getter for the timestamp
field.
Sourcepub fn ssrc(&self) -> Result<u32>
pub fn ssrc(&self) -> Result<u32>
Getter for the ssrc
field.
Sourcepub fn kind(&self) -> Result<MediaKind>
pub fn kind(&self) -> Result<MediaKind>
Getter for the kind
field.
Sourcepub fn mime_type(&self) -> Result<&'a str>
pub fn mime_type(&self) -> Result<&'a str>
Getter for the mime_type
field.
Sourcepub fn packets_lost(&self) -> Result<u64>
pub fn packets_lost(&self) -> Result<u64>
Getter for the packets_lost
field.
Sourcepub fn fraction_lost(&self) -> Result<u8>
pub fn fraction_lost(&self) -> Result<u8>
Getter for the fraction_lost
field.
Sourcepub fn packets_discarded(&self) -> Result<u64>
pub fn packets_discarded(&self) -> Result<u64>
Getter for the packets_discarded
field.
Sourcepub fn packets_retransmitted(&self) -> Result<u64>
pub fn packets_retransmitted(&self) -> Result<u64>
Getter for the packets_retransmitted
field.
Sourcepub fn packets_repaired(&self) -> Result<u64>
pub fn packets_repaired(&self) -> Result<u64>
Getter for the packets_repaired
field.
Sourcepub fn nack_count(&self) -> Result<u64>
pub fn nack_count(&self) -> Result<u64>
Getter for the nack_count
field.
Sourcepub fn nack_packet_count(&self) -> Result<u64>
pub fn nack_packet_count(&self) -> Result<u64>
Getter for the nack_packet_count
field.
Sourcepub fn pli_count(&self) -> Result<u64>
pub fn pli_count(&self) -> Result<u64>
Getter for the pli_count
field.
Sourcepub fn fir_count(&self) -> Result<u64>
pub fn fir_count(&self) -> Result<u64>
Getter for the fir_count
field.
Sourcepub fn score(&self) -> Result<u8>
pub fn score(&self) -> Result<u8>
Getter for the score
field.
Sourcepub fn rtx_packets_discarded(&self) -> Result<u64>
pub fn rtx_packets_discarded(&self) -> Result<u64>
Getter for the rtx_packets_discarded
field.
Sourcepub fn round_trip_time(&self) -> Result<f32>
pub fn round_trip_time(&self) -> Result<f32>
Getter for the round_trip_time
field.
Trait Implementations§
Source§impl<'a> Clone for BaseStatsRef<'a>
impl<'a> Clone for BaseStatsRef<'a>
Source§fn clone(&self) -> BaseStatsRef<'a>
fn clone(&self) -> BaseStatsRef<'a>
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<'a> Debug for BaseStatsRef<'a>
impl<'a> Debug for BaseStatsRef<'a>
Source§impl<'a> ReadAsRoot<'a> for BaseStatsRef<'a>
impl<'a> ReadAsRoot<'a> for BaseStatsRef<'a>
Source§impl<'a> TryFrom<BaseStatsRef<'a>> for BaseStats
impl<'a> TryFrom<BaseStatsRef<'a>> for BaseStats
impl<'a> Copy for BaseStatsRef<'a>
Auto Trait Implementations§
impl<'a> Freeze for BaseStatsRef<'a>
impl<'a> RefUnwindSafe for BaseStatsRef<'a>
impl<'a> Send for BaseStatsRef<'a>
impl<'a> Sync for BaseStatsRef<'a>
impl<'a> Unpin for BaseStatsRef<'a>
impl<'a> UnwindSafe for BaseStatsRef<'a>
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