mediasoup_sys::fbs::rtp_stream

Struct BaseStatsBuilder

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

Builder for serializing an instance of the BaseStats type.

Can be created using the BaseStats::builder method.

Implementations§

Source§

impl BaseStatsBuilder<()>

Source

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

Setter for the timestamp field.

Source

pub fn timestamp_as_default(self) -> BaseStatsBuilder<(DefaultValue,)>

Sets the timestamp field to the default value.

Source§

impl<T0> BaseStatsBuilder<(T0,)>

Source

pub fn ssrc<T1>(self, value: T1) -> BaseStatsBuilder<(T0, T1)>
where T1: WriteAsDefault<u32, u32>,

Setter for the ssrc field.

Source

pub fn ssrc_as_default(self) -> BaseStatsBuilder<(T0, DefaultValue)>

Sets the ssrc field to the default value.

Source§

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

Source

pub fn kind<T2>(self, value: T2) -> BaseStatsBuilder<(T0, T1, T2)>

Setter for the kind field.

Source

pub fn kind_as_default(self) -> BaseStatsBuilder<(T0, T1, DefaultValue)>

Sets the kind field to the default value.

Source§

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

Source

pub fn mime_type<T3>(self, value: T3) -> BaseStatsBuilder<(T0, T1, T2, T3)>
where T3: WriteAs<Offset<str>>,

Setter for the mime_type field.

Source§

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

Source

pub fn packets_lost<T4>( self, value: T4, ) -> BaseStatsBuilder<(T0, T1, T2, T3, T4)>
where T4: WriteAsDefault<u64, u64>,

Setter for the packets_lost field.

Source

pub fn packets_lost_as_default( self, ) -> BaseStatsBuilder<(T0, T1, T2, T3, DefaultValue)>

Sets the packets_lost field to the default value.

Source§

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

Source

pub fn fraction_lost<T5>( self, value: T5, ) -> BaseStatsBuilder<(T0, T1, T2, T3, T4, T5)>
where T5: WriteAsDefault<u8, u8>,

Setter for the fraction_lost field.

Source

pub fn fraction_lost_as_default( self, ) -> BaseStatsBuilder<(T0, T1, T2, T3, T4, DefaultValue)>

Sets the fraction_lost field to the default value.

Source§

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

Source

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

Setter for the packets_discarded field.

Source

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

Sets the packets_discarded field to the default value.

Source§

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

Source

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

Source

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

Sets the packets_retransmitted field to the default value.

Source§

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

Source

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

Setter for the packets_repaired field.

Source

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

Sets the packets_repaired field to the default value.

Source§

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

Source

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

Setter for the nack_count field.

Source

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

Sets the nack_count field to the default value.

Source§

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

Source

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

Setter for the nack_packet_count field.

Source

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

Sets the nack_packet_count field to the default value.

Source§

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

Source

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

Setter for the pli_count field.

Source

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

Sets the pli_count field to the default value.

Source§

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

Source

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

Setter for the fir_count field.

Source

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

Sets the fir_count field to the default value.

Source§

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

Source

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

Setter for the score field.

Source

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

Sets the score field to the default value.

Source§

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

Source

pub fn rid<T14>( self, value: T14, ) -> BaseStatsBuilder<(T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14)>
where T14: WriteAsOptional<Offset<str>>,

Setter for the rid field.

Source

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

Sets the rid field to null.

Source§

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

Source

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

Setter for the rtx_ssrc field.

Source

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

Sets the rtx_ssrc field to null.

Source§

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

Source

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

Source

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

Sets the rtx_packets_discarded field to the default value.

Source§

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

Source

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

Setter for the round_trip_time field.

Source

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

Sets the round_trip_time field to the default value.

Source§

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

Source

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

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

Trait Implementations§

Source§

impl<State: Debug> Debug for BaseStatsBuilder<State>

Source§

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

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

impl<T0: WriteAsDefault<u64, u64>, T1: WriteAsDefault<u32, u32>, T2: WriteAsDefault<MediaKind, MediaKind>, T3: WriteAs<Offset<str>>, T4: WriteAsDefault<u64, u64>, T5: WriteAsDefault<u8, u8>, T6: WriteAsDefault<u64, u64>, T7: WriteAsDefault<u64, u64>, T8: WriteAsDefault<u64, u64>, T9: WriteAsDefault<u64, u64>, T10: WriteAsDefault<u64, u64>, T11: WriteAsDefault<u64, u64>, T12: WriteAsDefault<u64, u64>, T13: WriteAsDefault<u8, u8>, T14: WriteAsOptional<Offset<str>>, T15: WriteAsOptional<u32>, T16: WriteAsDefault<u64, u64>, T17: WriteAsDefault<f32, f32>> WriteAs<Offset<BaseStats>> for BaseStatsBuilder<(T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17)>

Source§

impl<T0: WriteAsDefault<u64, u64>, T1: WriteAsDefault<u32, u32>, T2: WriteAsDefault<MediaKind, MediaKind>, T3: WriteAs<Offset<str>>, T4: WriteAsDefault<u64, u64>, T5: WriteAsDefault<u8, u8>, T6: WriteAsDefault<u64, u64>, T7: WriteAsDefault<u64, u64>, T8: WriteAsDefault<u64, u64>, T9: WriteAsDefault<u64, u64>, T10: WriteAsDefault<u64, u64>, T11: WriteAsDefault<u64, u64>, T12: WriteAsDefault<u64, u64>, T13: WriteAsDefault<u8, u8>, T14: WriteAsOptional<Offset<str>>, T15: WriteAsOptional<u32>, T16: WriteAsDefault<u64, u64>, T17: WriteAsDefault<f32, f32>> WriteAsOffset<BaseStats> for BaseStatsBuilder<(T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17)>

Source§

impl<T0: WriteAsDefault<u64, u64>, T1: WriteAsDefault<u32, u32>, T2: WriteAsDefault<MediaKind, MediaKind>, T3: WriteAs<Offset<str>>, T4: WriteAsDefault<u64, u64>, T5: WriteAsDefault<u8, u8>, T6: WriteAsDefault<u64, u64>, T7: WriteAsDefault<u64, u64>, T8: WriteAsDefault<u64, u64>, T9: WriteAsDefault<u64, u64>, T10: WriteAsDefault<u64, u64>, T11: WriteAsDefault<u64, u64>, T12: WriteAsDefault<u64, u64>, T13: WriteAsDefault<u8, u8>, T14: WriteAsOptional<Offset<str>>, T15: WriteAsOptional<u32>, T16: WriteAsDefault<u64, u64>, T17: WriteAsDefault<f32, f32>> WriteAsOptional<Offset<BaseStats>> for BaseStatsBuilder<(T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17)>

Auto Trait Implementations§

§

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

§

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

§

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

§

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

§

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

§

impl<State> UnwindSafe for BaseStatsBuilder<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.