mediasoup_sys::fbs::transport

Struct Stats

Source
pub struct Stats {
Show 24 fields pub transport_id: String, pub timestamp: u64, pub sctp_state: Option<SctpState>, pub bytes_received: u64, pub recv_bitrate: u32, pub bytes_sent: u64, pub send_bitrate: u32, pub rtp_bytes_received: u64, pub rtp_recv_bitrate: u32, pub rtp_bytes_sent: u64, pub rtp_send_bitrate: u32, pub rtx_bytes_received: u64, pub rtx_recv_bitrate: u32, pub rtx_bytes_sent: u64, pub rtx_send_bitrate: u32, pub probation_bytes_sent: u64, pub probation_send_bitrate: u32, pub available_outgoing_bitrate: Option<u32>, pub available_incoming_bitrate: Option<u32>, pub max_incoming_bitrate: Option<u32>, pub max_outgoing_bitrate: Option<u32>, pub min_outgoing_bitrate: Option<u32>, pub rtp_packet_loss_received: Option<f64>, pub rtp_packet_loss_sent: Option<f64>,
}
Expand description

The table Stats in the namespace FBS.Transport

Generated from these locations:

  • Table Stats in the file fbs/transport.fbs:157

Fields§

§transport_id: String

The field transport_id in the table Stats

§timestamp: u64

The field timestamp in the table Stats

§sctp_state: Option<SctpState>

The field sctp_state in the table Stats

§bytes_received: u64

The field bytes_received in the table Stats

§recv_bitrate: u32

The field recv_bitrate in the table Stats

§bytes_sent: u64

The field bytes_sent in the table Stats

§send_bitrate: u32

The field send_bitrate in the table Stats

§rtp_bytes_received: u64

The field rtp_bytes_received in the table Stats

§rtp_recv_bitrate: u32

The field rtp_recv_bitrate in the table Stats

§rtp_bytes_sent: u64

The field rtp_bytes_sent in the table Stats

§rtp_send_bitrate: u32

The field rtp_send_bitrate in the table Stats

§rtx_bytes_received: u64

The field rtx_bytes_received in the table Stats

§rtx_recv_bitrate: u32

The field rtx_recv_bitrate in the table Stats

§rtx_bytes_sent: u64

The field rtx_bytes_sent in the table Stats

§rtx_send_bitrate: u32

The field rtx_send_bitrate in the table Stats

§probation_bytes_sent: u64

The field probation_bytes_sent in the table Stats

§probation_send_bitrate: u32

The field probation_send_bitrate in the table Stats

§available_outgoing_bitrate: Option<u32>

The field available_outgoing_bitrate in the table Stats

§available_incoming_bitrate: Option<u32>

The field available_incoming_bitrate in the table Stats

§max_incoming_bitrate: Option<u32>

The field max_incoming_bitrate in the table Stats

§max_outgoing_bitrate: Option<u32>

The field max_outgoing_bitrate in the table Stats

§min_outgoing_bitrate: Option<u32>

The field min_outgoing_bitrate in the table Stats

§rtp_packet_loss_received: Option<f64>

The field rtp_packet_loss_received in the table Stats

§rtp_packet_loss_sent: Option<f64>

The field rtp_packet_loss_sent in the table Stats

Implementations§

Source§

impl Stats

Source

pub fn builder() -> StatsBuilder<()>

Creates a StatsBuilder for serializing an instance of this table.

Source

pub fn create( builder: &mut Builder, field_transport_id: impl WriteAs<Offset<str>>, field_timestamp: impl WriteAsDefault<u64, u64>, field_sctp_state: impl WriteAsOptional<SctpState>, field_bytes_received: impl WriteAsDefault<u64, u64>, field_recv_bitrate: impl WriteAsDefault<u32, u32>, field_bytes_sent: impl WriteAsDefault<u64, u64>, field_send_bitrate: impl WriteAsDefault<u32, u32>, field_rtp_bytes_received: impl WriteAsDefault<u64, u64>, field_rtp_recv_bitrate: impl WriteAsDefault<u32, u32>, field_rtp_bytes_sent: impl WriteAsDefault<u64, u64>, field_rtp_send_bitrate: impl WriteAsDefault<u32, u32>, field_rtx_bytes_received: impl WriteAsDefault<u64, u64>, field_rtx_recv_bitrate: impl WriteAsDefault<u32, u32>, field_rtx_bytes_sent: impl WriteAsDefault<u64, u64>, field_rtx_send_bitrate: impl WriteAsDefault<u32, u32>, field_probation_bytes_sent: impl WriteAsDefault<u64, u64>, field_probation_send_bitrate: impl WriteAsDefault<u32, u32>, field_available_outgoing_bitrate: impl WriteAsOptional<u32>, field_available_incoming_bitrate: impl WriteAsOptional<u32>, field_max_incoming_bitrate: impl WriteAsOptional<u32>, field_max_outgoing_bitrate: impl WriteAsOptional<u32>, field_min_outgoing_bitrate: impl WriteAsOptional<u32>, field_rtp_packet_loss_received: impl WriteAsOptional<f64>, field_rtp_packet_loss_sent: impl WriteAsOptional<f64>, ) -> Offset<Self>

Trait Implementations§

Source§

impl Clone for Stats

Source§

fn clone(&self) -> Stats

Returns a copy of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for Stats

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<'de> Deserialize<'de> for Stats

Source§

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 PartialEq for Stats

Source§

fn eq(&self, other: &Stats) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl PartialOrd for Stats

Source§

fn partial_cmp(&self, other: &Stats) -> Option<Ordering>

This method returns an ordering between self and other values if one exists. Read more
1.0.0 · Source§

fn lt(&self, other: &Rhs) -> bool

Tests less than (for self and other) and is used by the < operator. Read more
1.0.0 · Source§

fn le(&self, other: &Rhs) -> bool

Tests less than or equal to (for self and other) and is used by the <= operator. Read more
1.0.0 · Source§

fn gt(&self, other: &Rhs) -> bool

Tests greater than (for self and other) and is used by the > operator. Read more
1.0.0 · Source§

fn ge(&self, other: &Rhs) -> bool

Tests greater than or equal to (for self and other) and is used by the >= operator. Read more
Source§

impl Serialize for Stats

Source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more
Source§

impl<'a> TryFrom<StatsRef<'a>> for Stats

Source§

type Error = Error

The type returned in the event of a conversion error.
Source§

fn try_from(value: StatsRef<'a>) -> Result<Self>

Performs the conversion.
Source§

impl StructuralPartialEq for Stats

Source§

impl VectorWrite<Offset<Stats>> for Stats

Source§

impl WriteAs<Offset<Stats>> for Stats

Source§

impl WriteAsOffset<Stats> for Stats

Source§

impl<T0: WriteAs<Offset<str>>, T1: WriteAsDefault<u64, u64>, T2: WriteAsOptional<SctpState>, T3: WriteAsDefault<u64, u64>, T4: WriteAsDefault<u32, u32>, T5: WriteAsDefault<u64, u64>, T6: WriteAsDefault<u32, u32>, T7: WriteAsDefault<u64, u64>, T8: WriteAsDefault<u32, u32>, T9: WriteAsDefault<u64, u64>, T10: WriteAsDefault<u32, u32>, T11: WriteAsDefault<u64, u64>, T12: WriteAsDefault<u32, u32>, T13: WriteAsDefault<u64, u64>, T14: WriteAsDefault<u32, u32>, T15: WriteAsDefault<u64, u64>, T16: WriteAsDefault<u32, u32>, T17: WriteAsOptional<u32>, T18: WriteAsOptional<u32>, T19: WriteAsOptional<u32>, T20: WriteAsOptional<u32>, T21: WriteAsOptional<u32>, T22: WriteAsOptional<f64>, T23: WriteAsOptional<f64>> WriteAsOffset<Stats> for StatsBuilder<(T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, T18, T19, T20, T21, T22, T23)>

Source§

impl WriteAsOptional<Offset<Stats>> for Stats

Auto Trait Implementations§

§

impl Freeze for Stats

§

impl RefUnwindSafe for Stats

§

impl Send for Stats

§

impl Sync for Stats

§

impl Unpin for Stats

§

impl UnwindSafe for Stats

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dst: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dst. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,