Struct mediasoup_sys::fbs::transport::StatsRef
source · pub struct StatsRef<'a>(/* private fields */);
Expand description
Reference to a deserialized Stats.
Implementations§
source§impl<'a> StatsRef<'a>
impl<'a> StatsRef<'a>
sourcepub fn transport_id(&self) -> Result<&'a str>
pub fn transport_id(&self) -> Result<&'a str>
Getter for the transport_id
field.
sourcepub fn timestamp(&self) -> Result<u64>
pub fn timestamp(&self) -> Result<u64>
Getter for the timestamp
field.
sourcepub fn sctp_state(&self) -> Result<Option<SctpState>>
pub fn sctp_state(&self) -> Result<Option<SctpState>>
Getter for the sctp_state
field.
sourcepub fn bytes_received(&self) -> Result<u64>
pub fn bytes_received(&self) -> Result<u64>
Getter for the bytes_received
field.
sourcepub fn recv_bitrate(&self) -> Result<u32>
pub fn recv_bitrate(&self) -> Result<u32>
Getter for the recv_bitrate
field.
sourcepub fn bytes_sent(&self) -> Result<u64>
pub fn bytes_sent(&self) -> Result<u64>
Getter for the bytes_sent
field.
sourcepub fn send_bitrate(&self) -> Result<u32>
pub fn send_bitrate(&self) -> Result<u32>
Getter for the send_bitrate
field.
sourcepub fn rtp_bytes_received(&self) -> Result<u64>
pub fn rtp_bytes_received(&self) -> Result<u64>
Getter for the rtp_bytes_received
field.
sourcepub fn rtp_recv_bitrate(&self) -> Result<u32>
pub fn rtp_recv_bitrate(&self) -> Result<u32>
Getter for the rtp_recv_bitrate
field.
sourcepub fn rtp_bytes_sent(&self) -> Result<u64>
pub fn rtp_bytes_sent(&self) -> Result<u64>
Getter for the rtp_bytes_sent
field.
sourcepub fn rtp_send_bitrate(&self) -> Result<u32>
pub fn rtp_send_bitrate(&self) -> Result<u32>
Getter for the rtp_send_bitrate
field.
sourcepub fn rtx_bytes_received(&self) -> Result<u64>
pub fn rtx_bytes_received(&self) -> Result<u64>
Getter for the rtx_bytes_received
field.
sourcepub fn rtx_recv_bitrate(&self) -> Result<u32>
pub fn rtx_recv_bitrate(&self) -> Result<u32>
Getter for the rtx_recv_bitrate
field.
sourcepub fn rtx_bytes_sent(&self) -> Result<u64>
pub fn rtx_bytes_sent(&self) -> Result<u64>
Getter for the rtx_bytes_sent
field.
sourcepub fn rtx_send_bitrate(&self) -> Result<u32>
pub fn rtx_send_bitrate(&self) -> Result<u32>
Getter for the rtx_send_bitrate
field.
sourcepub fn probation_bytes_sent(&self) -> Result<u64>
pub fn probation_bytes_sent(&self) -> Result<u64>
Getter for the probation_bytes_sent
field.
sourcepub fn probation_send_bitrate(&self) -> Result<u32>
pub fn probation_send_bitrate(&self) -> Result<u32>
Getter for the probation_send_bitrate
field.
sourcepub fn available_outgoing_bitrate(&self) -> Result<Option<u32>>
pub fn available_outgoing_bitrate(&self) -> Result<Option<u32>>
Getter for the available_outgoing_bitrate
field.
sourcepub fn available_incoming_bitrate(&self) -> Result<Option<u32>>
pub fn available_incoming_bitrate(&self) -> Result<Option<u32>>
Getter for the available_incoming_bitrate
field.
sourcepub fn max_incoming_bitrate(&self) -> Result<Option<u32>>
pub fn max_incoming_bitrate(&self) -> Result<Option<u32>>
Getter for the max_incoming_bitrate
field.
sourcepub fn max_outgoing_bitrate(&self) -> Result<Option<u32>>
pub fn max_outgoing_bitrate(&self) -> Result<Option<u32>>
Getter for the max_outgoing_bitrate
field.
sourcepub fn min_outgoing_bitrate(&self) -> Result<Option<u32>>
pub fn min_outgoing_bitrate(&self) -> Result<Option<u32>>
Getter for the min_outgoing_bitrate
field.
sourcepub fn rtp_packet_loss_received(&self) -> Result<Option<f64>>
pub fn rtp_packet_loss_received(&self) -> Result<Option<f64>>
Getter for the rtp_packet_loss_received
field.
sourcepub fn rtp_packet_loss_sent(&self) -> Result<Option<f64>>
pub fn rtp_packet_loss_sent(&self) -> Result<Option<f64>>
Getter for the rtp_packet_loss_sent
field.