pub struct SendStatsRef<'a>(/* private fields */);
Expand description
Reference to a deserialized SendStats.
Implementations§
Source§impl<'a> SendStatsRef<'a>
impl<'a> SendStatsRef<'a>
Sourcepub fn base(&self) -> Result<StatsRef<'a>>
pub fn base(&self) -> Result<StatsRef<'a>>
Getter for the base
field.
Sourcepub fn packet_count(&self) -> Result<u64>
pub fn packet_count(&self) -> Result<u64>
Getter for the packet_count
field.
Sourcepub fn byte_count(&self) -> Result<u64>
pub fn byte_count(&self) -> Result<u64>
Getter for the byte_count
field.
Sourcepub fn bitrate(&self) -> Result<u32>
pub fn bitrate(&self) -> Result<u32>
Getter for the bitrate
field.
Trait Implementations§
Source§impl<'a> Clone for SendStatsRef<'a>
impl<'a> Clone for SendStatsRef<'a>
Source§fn clone(&self) -> SendStatsRef<'a>
fn clone(&self) -> SendStatsRef<'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 SendStatsRef<'a>
impl<'a> Debug for SendStatsRef<'a>
Source§impl<'a> ReadAsRoot<'a> for SendStatsRef<'a>
impl<'a> ReadAsRoot<'a> for SendStatsRef<'a>
Source§impl<'a> TryFrom<SendStatsRef<'a>> for SendStats
impl<'a> TryFrom<SendStatsRef<'a>> for SendStats
impl<'a> Copy for SendStatsRef<'a>
Auto Trait Implementations§
impl<'a> Freeze for SendStatsRef<'a>
impl<'a> RefUnwindSafe for SendStatsRef<'a>
impl<'a> Send for SendStatsRef<'a>
impl<'a> Sync for SendStatsRef<'a>
impl<'a> Unpin for SendStatsRef<'a>
impl<'a> UnwindSafe for SendStatsRef<'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