mediasoup_sys::fbs::transport

Struct StatsBuilder

Source
pub struct StatsBuilder<State>(/* private fields */);
Expand description

Builder for serializing an instance of the Stats type.

Can be created using the Stats::builder method.

Implementations§

Source§

impl StatsBuilder<()>

Source

pub fn transport_id<T0>(self, value: T0) -> StatsBuilder<(T0,)>
where T0: WriteAs<Offset<str>>,

Setter for the transport_id field.

Source§

impl<T0> StatsBuilder<(T0,)>

Source

pub fn timestamp<T1>(self, value: T1) -> StatsBuilder<(T0, T1)>
where T1: WriteAsDefault<u64, u64>,

Setter for the timestamp field.

Source

pub fn timestamp_as_default(self) -> StatsBuilder<(T0, DefaultValue)>

Sets the timestamp field to the default value.

Source§

impl<T0, T1> StatsBuilder<(T0, T1)>

Source

pub fn sctp_state<T2>(self, value: T2) -> StatsBuilder<(T0, T1, T2)>

Setter for the sctp_state field.

Source

pub fn sctp_state_as_null(self) -> StatsBuilder<(T0, T1, ())>

Sets the sctp_state field to null.

Source§

impl<T0, T1, T2> StatsBuilder<(T0, T1, T2)>

Source

pub fn bytes_received<T3>(self, value: T3) -> StatsBuilder<(T0, T1, T2, T3)>
where T3: WriteAsDefault<u64, u64>,

Setter for the bytes_received field.

Source

pub fn bytes_received_as_default( self, ) -> StatsBuilder<(T0, T1, T2, DefaultValue)>

Sets the bytes_received field to the default value.

Source§

impl<T0, T1, T2, T3> StatsBuilder<(T0, T1, T2, T3)>

Source

pub fn recv_bitrate<T4>(self, value: T4) -> StatsBuilder<(T0, T1, T2, T3, T4)>
where T4: WriteAsDefault<u32, u32>,

Setter for the recv_bitrate field.

Source

pub fn recv_bitrate_as_default( self, ) -> StatsBuilder<(T0, T1, T2, T3, DefaultValue)>

Sets the recv_bitrate field to the default value.

Source§

impl<T0, T1, T2, T3, T4> StatsBuilder<(T0, T1, T2, T3, T4)>

Source

pub fn bytes_sent<T5>(self, value: T5) -> StatsBuilder<(T0, T1, T2, T3, T4, T5)>
where T5: WriteAsDefault<u64, u64>,

Setter for the bytes_sent field.

Source

pub fn bytes_sent_as_default( self, ) -> StatsBuilder<(T0, T1, T2, T3, T4, DefaultValue)>

Sets the bytes_sent field to the default value.

Source§

impl<T0, T1, T2, T3, T4, T5> StatsBuilder<(T0, T1, T2, T3, T4, T5)>

Source

pub fn send_bitrate<T6>( self, value: T6, ) -> StatsBuilder<(T0, T1, T2, T3, T4, T5, T6)>
where T6: WriteAsDefault<u32, u32>,

Setter for the send_bitrate field.

Source

pub fn send_bitrate_as_default( self, ) -> StatsBuilder<(T0, T1, T2, T3, T4, T5, DefaultValue)>

Sets the send_bitrate field to the default value.

Source§

impl<T0, T1, T2, T3, T4, T5, T6> StatsBuilder<(T0, T1, T2, T3, T4, T5, T6)>

Source

pub fn rtp_bytes_received<T7>( self, value: T7, ) -> StatsBuilder<(T0, T1, T2, T3, T4, T5, T6, T7)>
where T7: WriteAsDefault<u64, u64>,

Setter for the rtp_bytes_received field.

Source

pub fn rtp_bytes_received_as_default( self, ) -> StatsBuilder<(T0, T1, T2, T3, T4, T5, T6, DefaultValue)>

Sets the rtp_bytes_received field to the default value.

Source§

impl<T0, T1, T2, T3, T4, T5, T6, T7> StatsBuilder<(T0, T1, T2, T3, T4, T5, T6, T7)>

Source

pub fn rtp_recv_bitrate<T8>( self, value: T8, ) -> StatsBuilder<(T0, T1, T2, T3, T4, T5, T6, T7, T8)>
where T8: WriteAsDefault<u32, u32>,

Setter for the rtp_recv_bitrate field.

Source

pub fn rtp_recv_bitrate_as_default( self, ) -> StatsBuilder<(T0, T1, T2, T3, T4, T5, T6, T7, DefaultValue)>

Sets the rtp_recv_bitrate field to the default value.

Source§

impl<T0, T1, T2, T3, T4, T5, T6, T7, T8> StatsBuilder<(T0, T1, T2, T3, T4, T5, T6, T7, T8)>

Source

pub fn rtp_bytes_sent<T9>( self, value: T9, ) -> StatsBuilder<(T0, T1, T2, T3, T4, T5, T6, T7, T8, T9)>
where T9: WriteAsDefault<u64, u64>,

Setter for the rtp_bytes_sent field.

Source

pub fn rtp_bytes_sent_as_default( self, ) -> StatsBuilder<(T0, T1, T2, T3, T4, T5, T6, T7, T8, DefaultValue)>

Sets the rtp_bytes_sent field to the default value.

Source§

impl<T0, T1, T2, T3, T4, T5, T6, T7, T8, T9> StatsBuilder<(T0, T1, T2, T3, T4, T5, T6, T7, T8, T9)>

Source

pub fn rtp_send_bitrate<T10>( self, value: T10, ) -> StatsBuilder<(T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10)>
where T10: WriteAsDefault<u32, u32>,

Setter for the rtp_send_bitrate field.

Source

pub fn rtp_send_bitrate_as_default( self, ) -> StatsBuilder<(T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, DefaultValue)>

Sets the rtp_send_bitrate field to the default value.

Source§

impl<T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10> StatsBuilder<(T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10)>

Source

pub fn rtx_bytes_received<T11>( self, value: T11, ) -> StatsBuilder<(T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11)>
where T11: WriteAsDefault<u64, u64>,

Setter for the rtx_bytes_received field.

Source

pub fn rtx_bytes_received_as_default( self, ) -> StatsBuilder<(T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, DefaultValue)>

Sets the rtx_bytes_received field to the default value.

Source§

impl<T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11> StatsBuilder<(T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11)>

Source

pub fn rtx_recv_bitrate<T12>( self, value: T12, ) -> StatsBuilder<(T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12)>
where T12: WriteAsDefault<u32, u32>,

Setter for the rtx_recv_bitrate field.

Source

pub fn rtx_recv_bitrate_as_default( self, ) -> StatsBuilder<(T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, DefaultValue)>

Sets the rtx_recv_bitrate field to the default value.

Source§

impl<T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12> StatsBuilder<(T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12)>

Source

pub fn rtx_bytes_sent<T13>( self, value: T13, ) -> StatsBuilder<(T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13)>
where T13: WriteAsDefault<u64, u64>,

Setter for the rtx_bytes_sent field.

Source

pub fn rtx_bytes_sent_as_default( self, ) -> StatsBuilder<(T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, DefaultValue)>

Sets the rtx_bytes_sent field to the default value.

Source§

impl<T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13> StatsBuilder<(T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13)>

Source

pub fn rtx_send_bitrate<T14>( self, value: T14, ) -> StatsBuilder<(T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14)>
where T14: WriteAsDefault<u32, u32>,

Setter for the rtx_send_bitrate field.

Source

pub fn rtx_send_bitrate_as_default( self, ) -> StatsBuilder<(T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, DefaultValue)>

Sets the rtx_send_bitrate field to the default value.

Source§

impl<T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14> StatsBuilder<(T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14)>

Source

pub fn probation_bytes_sent<T15>( self, value: T15, ) -> StatsBuilder<(T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15)>
where T15: WriteAsDefault<u64, u64>,

Source

pub fn probation_bytes_sent_as_default( self, ) -> StatsBuilder<(T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, DefaultValue)>

Sets the probation_bytes_sent field to the default value.

Source§

impl<T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15> StatsBuilder<(T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15)>

Source

pub fn probation_send_bitrate<T16>( self, value: T16, ) -> StatsBuilder<(T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16)>
where T16: WriteAsDefault<u32, u32>,

Source

pub fn probation_send_bitrate_as_default( self, ) -> StatsBuilder<(T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, DefaultValue)>

Sets the probation_send_bitrate field to the default value.

Source§

impl<T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16> StatsBuilder<(T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16)>

Source

pub fn available_outgoing_bitrate<T17>( self, value: T17, ) -> StatsBuilder<(T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17)>
where T17: WriteAsOptional<u32>,

Source

pub fn available_outgoing_bitrate_as_null( self, ) -> StatsBuilder<(T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, ())>

Source§

impl<T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17> StatsBuilder<(T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17)>

Source

pub fn available_incoming_bitrate<T18>( self, value: T18, ) -> StatsBuilder<(T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, T18)>
where T18: WriteAsOptional<u32>,

Source

pub fn available_incoming_bitrate_as_null( self, ) -> StatsBuilder<(T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, ())>

Source§

impl<T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, T18> StatsBuilder<(T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, T18)>

Source

pub fn max_incoming_bitrate<T19>( self, value: T19, ) -> StatsBuilder<(T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, T18, T19)>
where T19: WriteAsOptional<u32>,

Source

pub fn max_incoming_bitrate_as_null( self, ) -> StatsBuilder<(T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, T18, ())>

Sets the max_incoming_bitrate field to null.

Source§

impl<T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, T18, T19> StatsBuilder<(T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, T18, T19)>

Source

pub fn max_outgoing_bitrate<T20>( self, value: T20, ) -> StatsBuilder<(T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, T18, T19, T20)>
where T20: WriteAsOptional<u32>,

Source

pub fn max_outgoing_bitrate_as_null( self, ) -> StatsBuilder<(T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, T18, T19, ())>

Sets the max_outgoing_bitrate field to null.

Source§

impl<T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, T18, T19, T20> StatsBuilder<(T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, T18, T19, T20)>

Source

pub fn min_outgoing_bitrate<T21>( self, value: T21, ) -> StatsBuilder<(T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, T18, T19, T20, T21)>
where T21: WriteAsOptional<u32>,

Source

pub fn min_outgoing_bitrate_as_null( self, ) -> StatsBuilder<(T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, T18, T19, T20, ())>

Sets the min_outgoing_bitrate field to null.

Source§

impl<T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, T18, T19, T20, T21> StatsBuilder<(T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, T18, T19, T20, T21)>

Source

pub fn rtp_packet_loss_received<T22>( self, value: T22, ) -> StatsBuilder<(T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, T18, T19, T20, T21, T22)>
where T22: WriteAsOptional<f64>,

Source

pub fn rtp_packet_loss_received_as_null( self, ) -> StatsBuilder<(T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, T18, T19, T20, T21, ())>

Source§

impl<T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, T18, T19, T20, T21, T22> StatsBuilder<(T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, T18, T19, T20, T21, T22)>

Source

pub fn rtp_packet_loss_sent<T23>( self, value: T23, ) -> 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)>
where T23: WriteAsOptional<f64>,

Source

pub fn rtp_packet_loss_sent_as_null( self, ) -> StatsBuilder<(T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, T18, T19, T20, T21, T22, ())>

Sets the rtp_packet_loss_sent field to null.

Source§

impl<T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, T18, T19, T20, T21, T22, T23> 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

pub fn finish(self, builder: &mut Builder) -> Offset<Stats>
where Self: WriteAsOffset<Stats>,

Finish writing the builder to get an Offset to a serialized Stats.

Trait Implementations§

Source§

impl<State: Debug> Debug for StatsBuilder<State>

Source§

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

Formats the value using the given formatter. Read more
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>> WriteAs<Offset<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<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<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>> WriteAsOptional<Offset<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)>

Auto Trait Implementations§

§

impl<State> Freeze for StatsBuilder<State>
where State: Freeze,

§

impl<State> RefUnwindSafe for StatsBuilder<State>
where State: RefUnwindSafe,

§

impl<State> Send for StatsBuilder<State>
where State: Send,

§

impl<State> Sync for StatsBuilder<State>
where State: Sync,

§

impl<State> Unpin for StatsBuilder<State>
where State: Unpin,

§

impl<State> UnwindSafe for StatsBuilder<State>
where State: UnwindSafe,

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> 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, 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.