mediasoup_sys::fbs::rtp_stream

Struct ParamsBuilder

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

Builder for serializing an instance of the Params type.

Can be created using the Params::builder method.

Implementations§

Source§

impl ParamsBuilder<()>

Source

pub fn encoding_idx<T0>(self, value: T0) -> ParamsBuilder<(T0,)>
where T0: WriteAsDefault<u32, u32>,

Setter for the encoding_idx field.

Source

pub fn encoding_idx_as_default(self) -> ParamsBuilder<(DefaultValue,)>

Sets the encoding_idx field to the default value.

Source§

impl<T0> ParamsBuilder<(T0,)>

Source

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

Setter for the ssrc field.

Source

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

Sets the ssrc field to the default value.

Source§

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

Source

pub fn payload_type<T2>(self, value: T2) -> ParamsBuilder<(T0, T1, T2)>
where T2: WriteAsDefault<u8, u8>,

Setter for the payload_type field.

Source

pub fn payload_type_as_default(self) -> ParamsBuilder<(T0, T1, DefaultValue)>

Sets the payload_type field to the default value.

Source§

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

Source

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

Setter for the mime_type field.

Source§

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

Source

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

Setter for the clock_rate field.

Source

pub fn clock_rate_as_default( self, ) -> ParamsBuilder<(T0, T1, T2, T3, DefaultValue)>

Sets the clock_rate field to the default value.

Source§

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

Source

pub fn rid<T5>(self, value: T5) -> ParamsBuilder<(T0, T1, T2, T3, T4, T5)>

Setter for the rid field.

Source

pub fn rid_as_null(self) -> ParamsBuilder<(T0, T1, T2, T3, T4, ())>

Sets the rid field to null.

Source§

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

Source

pub fn cname<T6>(self, value: T6) -> ParamsBuilder<(T0, T1, T2, T3, T4, T5, T6)>
where T6: WriteAs<Offset<str>>,

Setter for the cname field.

Source§

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

Source

pub fn rtx_ssrc<T7>( self, value: T7, ) -> ParamsBuilder<(T0, T1, T2, T3, T4, T5, T6, T7)>
where T7: WriteAsOptional<u32>,

Setter for the rtx_ssrc field.

Source

pub fn rtx_ssrc_as_null(self) -> ParamsBuilder<(T0, T1, T2, T3, T4, T5, T6, ())>

Sets the rtx_ssrc field to null.

Source§

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

Source

pub fn rtx_payload_type<T8>( self, value: T8, ) -> ParamsBuilder<(T0, T1, T2, T3, T4, T5, T6, T7, T8)>
where T8: WriteAsOptional<u8>,

Setter for the rtx_payload_type field.

Source

pub fn rtx_payload_type_as_null( self, ) -> ParamsBuilder<(T0, T1, T2, T3, T4, T5, T6, T7, ())>

Sets the rtx_payload_type field to null.

Source§

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

Source

pub fn use_nack<T9>( self, value: T9, ) -> ParamsBuilder<(T0, T1, T2, T3, T4, T5, T6, T7, T8, T9)>
where T9: WriteAsDefault<bool, bool>,

Setter for the use_nack field.

Source

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

Sets the use_nack field to the default value.

Source§

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

Source

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

Setter for the use_pli field.

Source

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

Sets the use_pli field to the default value.

Source§

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

Source

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

Setter for the use_fir field.

Source

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

Sets the use_fir field to the default value.

Source§

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

Source

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

Setter for the use_in_band_fec field.

Source

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

Sets the use_in_band_fec field to the default value.

Source§

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

Source

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

Setter for the use_dtx field.

Source

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

Sets the use_dtx field to the default value.

Source§

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

Source

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

Setter for the spatial_layers field.

Source

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

Sets the spatial_layers field to the default value.

Source§

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

Source

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

Setter for the temporal_layers field.

Source

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

Sets the temporal_layers field to the default value.

Source§

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

Source

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

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

Trait Implementations§

Source§

impl<State: Debug> Debug for ParamsBuilder<State>

Source§

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

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

impl<T0: WriteAsDefault<u32, u32>, T1: WriteAsDefault<u32, u32>, T2: WriteAsDefault<u8, u8>, T3: WriteAs<Offset<str>>, T4: WriteAsDefault<u32, u32>, T5: WriteAsOptional<Offset<str>>, T6: WriteAs<Offset<str>>, T7: WriteAsOptional<u32>, T8: WriteAsOptional<u8>, T9: WriteAsDefault<bool, bool>, T10: WriteAsDefault<bool, bool>, T11: WriteAsDefault<bool, bool>, T12: WriteAsDefault<bool, bool>, T13: WriteAsDefault<bool, bool>, T14: WriteAsDefault<u8, u8>, T15: WriteAsDefault<u8, u8>> WriteAs<Offset<Params>> for ParamsBuilder<(T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15)>

Source§

impl<T0: WriteAsDefault<u32, u32>, T1: WriteAsDefault<u32, u32>, T2: WriteAsDefault<u8, u8>, T3: WriteAs<Offset<str>>, T4: WriteAsDefault<u32, u32>, T5: WriteAsOptional<Offset<str>>, T6: WriteAs<Offset<str>>, T7: WriteAsOptional<u32>, T8: WriteAsOptional<u8>, T9: WriteAsDefault<bool, bool>, T10: WriteAsDefault<bool, bool>, T11: WriteAsDefault<bool, bool>, T12: WriteAsDefault<bool, bool>, T13: WriteAsDefault<bool, bool>, T14: WriteAsDefault<u8, u8>, T15: WriteAsDefault<u8, u8>> WriteAsOffset<Params> for ParamsBuilder<(T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15)>

Source§

impl<T0: WriteAsDefault<u32, u32>, T1: WriteAsDefault<u32, u32>, T2: WriteAsDefault<u8, u8>, T3: WriteAs<Offset<str>>, T4: WriteAsDefault<u32, u32>, T5: WriteAsOptional<Offset<str>>, T6: WriteAs<Offset<str>>, T7: WriteAsOptional<u32>, T8: WriteAsOptional<u8>, T9: WriteAsDefault<bool, bool>, T10: WriteAsDefault<bool, bool>, T11: WriteAsDefault<bool, bool>, T12: WriteAsDefault<bool, bool>, T13: WriteAsDefault<bool, bool>, T14: WriteAsDefault<u8, u8>, T15: WriteAsDefault<u8, u8>> WriteAsOptional<Offset<Params>> for ParamsBuilder<(T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15)>

Auto Trait Implementations§

§

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

§

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

§

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

§

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

§

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

§

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