mediasoup_sys::fbs::plain_transport

Struct PlainTransportOptionsBuilder

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

Builder for serializing an instance of the PlainTransportOptions type.

Can be created using the PlainTransportOptions::builder method.

Implementations§

Source§

impl PlainTransportOptionsBuilder<()>

Source

pub fn base<T0>(self, value: T0) -> PlainTransportOptionsBuilder<(T0,)>
where T0: WriteAs<Offset<Options>>,

Setter for the base field.

Source§

impl<T0> PlainTransportOptionsBuilder<(T0,)>

Source

pub fn listen_info<T1>( self, value: T1, ) -> PlainTransportOptionsBuilder<(T0, T1)>

Setter for the listen_info field.

Source§

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

Source§

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

Source

pub fn rtcp_mux<T3>( self, value: T3, ) -> PlainTransportOptionsBuilder<(T0, T1, T2, T3)>
where T3: WriteAsDefault<bool, bool>,

Setter for the rtcp_mux field.

Source

pub fn rtcp_mux_as_default( self, ) -> PlainTransportOptionsBuilder<(T0, T1, T2, DefaultValue)>

Sets the rtcp_mux field to the default value.

Source§

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

Source

pub fn comedia<T4>( self, value: T4, ) -> PlainTransportOptionsBuilder<(T0, T1, T2, T3, T4)>
where T4: WriteAsDefault<bool, bool>,

Setter for the comedia field.

Source

pub fn comedia_as_default( self, ) -> PlainTransportOptionsBuilder<(T0, T1, T2, T3, DefaultValue)>

Sets the comedia field to the default value.

Source§

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

Source

pub fn enable_srtp<T5>( self, value: T5, ) -> PlainTransportOptionsBuilder<(T0, T1, T2, T3, T4, T5)>
where T5: WriteAsDefault<bool, bool>,

Setter for the enable_srtp field.

Source

pub fn enable_srtp_as_default( self, ) -> PlainTransportOptionsBuilder<(T0, T1, T2, T3, T4, DefaultValue)>

Sets the enable_srtp field to the default value.

Source§

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

Source§

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

Source

pub fn finish(self, builder: &mut Builder) -> Offset<PlainTransportOptions>

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

Trait Implementations§

Auto Trait Implementations§

§

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

§

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

§

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

§

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

§

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

§

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