mediasoup_sys::fbs::web_rtc_transport

Struct WebRtcTransportOptionsBuilder

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

Builder for serializing an instance of the WebRtcTransportOptions type.

Can be created using the WebRtcTransportOptions::builder method.

Implementations§

Source§

impl WebRtcTransportOptionsBuilder<()>

Source

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

Setter for the base field.

Source§

impl<T0> WebRtcTransportOptionsBuilder<(T0,)>

Source

pub fn listen<T1>(self, value: T1) -> WebRtcTransportOptionsBuilder<(T0, T1)>
where T1: WriteAsUnion<Listen>,

Setter for the listen field.

Source§

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

Source

pub fn enable_udp<T2>( self, value: T2, ) -> WebRtcTransportOptionsBuilder<(T0, T1, T2)>
where T2: WriteAsDefault<bool, bool>,

Setter for the enable_udp field.

Source

pub fn enable_udp_as_default( self, ) -> WebRtcTransportOptionsBuilder<(T0, T1, DefaultValue)>

Sets the enable_udp field to the default value.

Source§

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

Source

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

Setter for the enable_tcp field.

Source

pub fn enable_tcp_as_default( self, ) -> WebRtcTransportOptionsBuilder<(T0, T1, T2, DefaultValue)>

Sets the enable_tcp field to the default value.

Source§

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

Source

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

Setter for the prefer_udp field.

Source

pub fn prefer_udp_as_default( self, ) -> WebRtcTransportOptionsBuilder<(T0, T1, T2, T3, DefaultValue)>

Sets the prefer_udp field to the default value.

Source§

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

Source

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

Setter for the prefer_tcp field.

Source

pub fn prefer_tcp_as_default( self, ) -> WebRtcTransportOptionsBuilder<(T0, T1, T2, T3, T4, DefaultValue)>

Sets the prefer_tcp field to the default value.

Source§

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

Setter for the ice_consent_timeout field.

Sets the ice_consent_timeout field to the default value.

Source§

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

Source

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

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

Trait Implementations§

Auto Trait Implementations§

§

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

§

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

§

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

§

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

§

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

§

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