Struct mediasoup_sys::fbs::data_producer::GetStatsResponseRef
source · pub struct GetStatsResponseRef<'a>(/* private fields */);
Expand description
Reference to a deserialized GetStatsResponse.
Implementations§
source§impl<'a> GetStatsResponseRef<'a>
impl<'a> GetStatsResponseRef<'a>
sourcepub fn timestamp(&self) -> Result<u64>
pub fn timestamp(&self) -> Result<u64>
Getter for the timestamp
field.
sourcepub fn label(&self) -> Result<&'a str>
pub fn label(&self) -> Result<&'a str>
Getter for the label
field.
sourcepub fn protocol(&self) -> Result<&'a str>
pub fn protocol(&self) -> Result<&'a str>
Getter for the protocol
field.
sourcepub fn messages_received(&self) -> Result<u64>
pub fn messages_received(&self) -> Result<u64>
Getter for the messages_received
field.
sourcepub fn bytes_received(&self) -> Result<u64>
pub fn bytes_received(&self) -> Result<u64>
Getter for the bytes_received
field.
sourcepub fn buffered_amount(&self) -> Result<u32>
pub fn buffered_amount(&self) -> Result<u32>
Getter for the buffered_amount
field.
Trait Implementations§
source§impl<'a> Clone for GetStatsResponseRef<'a>
impl<'a> Clone for GetStatsResponseRef<'a>
source§fn clone(&self) -> GetStatsResponseRef<'a>
fn clone(&self) -> GetStatsResponseRef<'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 GetStatsResponseRef<'a>
impl<'a> Debug for GetStatsResponseRef<'a>
source§impl<'a> ReadAsRoot<'a> for GetStatsResponseRef<'a>
impl<'a> ReadAsRoot<'a> for GetStatsResponseRef<'a>
source§impl<'a> TryFrom<GetStatsResponseRef<'a>> for GetStatsResponse
impl<'a> TryFrom<GetStatsResponseRef<'a>> for GetStatsResponse
impl<'a> Copy for GetStatsResponseRef<'a>
Auto Trait Implementations§
impl<'a> RefUnwindSafe for GetStatsResponseRef<'a>
impl<'a> Send for GetStatsResponseRef<'a>
impl<'a> Sync for GetStatsResponseRef<'a>
impl<'a> Unpin for GetStatsResponseRef<'a>
impl<'a> UnwindSafe for GetStatsResponseRef<'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