mediasoup_sys::fbs::request

Struct BodyBuilder

Source
pub struct BodyBuilder<T>(/* private fields */);
Expand description

Builder for serializing an instance of the Body type.

Can be created using the Body::builder method.

Implementations§

Source§

impl BodyBuilder<Uninitialized>

Source

pub fn worker_update_settings_request<T>( self, value: T, ) -> BodyBuilder<Initialized<1, T>>

Creates an instance of the Worker_UpdateSettingsRequest variant.

Source

pub fn worker_create_web_rtc_server_request<T>( self, value: T, ) -> BodyBuilder<Initialized<2, T>>

Creates an instance of the Worker_CreateWebRtcServerRequest variant.

Source

pub fn worker_close_web_rtc_server_request<T>( self, value: T, ) -> BodyBuilder<Initialized<3, T>>

Creates an instance of the Worker_CloseWebRtcServerRequest variant.

Source

pub fn worker_create_router_request<T>( self, value: T, ) -> BodyBuilder<Initialized<4, T>>

Creates an instance of the Worker_CreateRouterRequest variant.

Source

pub fn worker_close_router_request<T>( self, value: T, ) -> BodyBuilder<Initialized<5, T>>

Creates an instance of the Worker_CloseRouterRequest variant.

Source

pub fn router_create_web_rtc_transport_request<T>( self, value: T, ) -> BodyBuilder<Initialized<6, T>>

Creates an instance of the Router_CreateWebRtcTransportRequest variant.

Source

pub fn router_create_plain_transport_request<T>( self, value: T, ) -> BodyBuilder<Initialized<7, T>>

Creates an instance of the Router_CreatePlainTransportRequest variant.

Source

pub fn router_create_pipe_transport_request<T>( self, value: T, ) -> BodyBuilder<Initialized<8, T>>

Creates an instance of the Router_CreatePipeTransportRequest variant.

Source

pub fn router_create_direct_transport_request<T>( self, value: T, ) -> BodyBuilder<Initialized<9, T>>

Creates an instance of the Router_CreateDirectTransportRequest variant.

Source

pub fn router_create_active_speaker_observer_request<T>( self, value: T, ) -> BodyBuilder<Initialized<10, T>>

Source

pub fn router_create_audio_level_observer_request<T>( self, value: T, ) -> BodyBuilder<Initialized<11, T>>

Source

pub fn router_close_transport_request<T>( self, value: T, ) -> BodyBuilder<Initialized<12, T>>

Creates an instance of the Router_CloseTransportRequest variant.

Source

pub fn router_close_rtp_observer_request<T>( self, value: T, ) -> BodyBuilder<Initialized<13, T>>

Creates an instance of the Router_CloseRtpObserverRequest variant.

Source

pub fn transport_set_max_incoming_bitrate_request<T>( self, value: T, ) -> BodyBuilder<Initialized<14, T>>

Source

pub fn transport_set_max_outgoing_bitrate_request<T>( self, value: T, ) -> BodyBuilder<Initialized<15, T>>

Source

pub fn transport_set_min_outgoing_bitrate_request<T>( self, value: T, ) -> BodyBuilder<Initialized<16, T>>

Source

pub fn transport_produce_request<T>( self, value: T, ) -> BodyBuilder<Initialized<17, T>>

Creates an instance of the Transport_ProduceRequest variant.

Source

pub fn transport_consume_request<T>( self, value: T, ) -> BodyBuilder<Initialized<18, T>>

Creates an instance of the Transport_ConsumeRequest variant.

Source

pub fn transport_produce_data_request<T>( self, value: T, ) -> BodyBuilder<Initialized<19, T>>

Creates an instance of the Transport_ProduceDataRequest variant.

Source

pub fn transport_consume_data_request<T>( self, value: T, ) -> BodyBuilder<Initialized<20, T>>

Creates an instance of the Transport_ConsumeDataRequest variant.

Source

pub fn transport_enable_trace_event_request<T>( self, value: T, ) -> BodyBuilder<Initialized<21, T>>

Creates an instance of the Transport_EnableTraceEventRequest variant.

Source

pub fn transport_close_producer_request<T>( self, value: T, ) -> BodyBuilder<Initialized<22, T>>

Creates an instance of the Transport_CloseProducerRequest variant.

Source

pub fn transport_close_consumer_request<T>( self, value: T, ) -> BodyBuilder<Initialized<23, T>>

Creates an instance of the Transport_CloseConsumerRequest variant.

Source

pub fn transport_close_data_producer_request<T>( self, value: T, ) -> BodyBuilder<Initialized<24, T>>

Creates an instance of the Transport_CloseDataProducerRequest variant.

Source

pub fn transport_close_data_consumer_request<T>( self, value: T, ) -> BodyBuilder<Initialized<25, T>>

Creates an instance of the Transport_CloseDataConsumerRequest variant.

Source

pub fn plain_transport_connect_request<T>( self, value: T, ) -> BodyBuilder<Initialized<26, T>>

Creates an instance of the PlainTransport_ConnectRequest variant.

Source

pub fn pipe_transport_connect_request<T>( self, value: T, ) -> BodyBuilder<Initialized<27, T>>

Creates an instance of the PipeTransport_ConnectRequest variant.

Source

pub fn web_rtc_transport_connect_request<T>( self, value: T, ) -> BodyBuilder<Initialized<28, T>>

Creates an instance of the WebRtcTransport_ConnectRequest variant.

Source

pub fn producer_enable_trace_event_request<T>( self, value: T, ) -> BodyBuilder<Initialized<29, T>>

Creates an instance of the Producer_EnableTraceEventRequest variant.

Source

pub fn consumer_set_preferred_layers_request<T>( self, value: T, ) -> BodyBuilder<Initialized<30, T>>

Creates an instance of the Consumer_SetPreferredLayersRequest variant.

Source

pub fn consumer_set_priority_request<T>( self, value: T, ) -> BodyBuilder<Initialized<31, T>>

Creates an instance of the Consumer_SetPriorityRequest variant.

Source

pub fn consumer_enable_trace_event_request<T>( self, value: T, ) -> BodyBuilder<Initialized<32, T>>

Creates an instance of the Consumer_EnableTraceEventRequest variant.

Source

pub fn data_consumer_set_buffered_amount_low_threshold_request<T>( self, value: T, ) -> BodyBuilder<Initialized<33, T>>

Source

pub fn data_consumer_send_request<T>( self, value: T, ) -> BodyBuilder<Initialized<34, T>>

Creates an instance of the DataConsumer_SendRequest variant.

Source

pub fn data_consumer_set_subchannels_request<T>( self, value: T, ) -> BodyBuilder<Initialized<35, T>>

Creates an instance of the DataConsumer_SetSubchannelsRequest variant.

Source

pub fn data_consumer_add_subchannel_request<T>( self, value: T, ) -> BodyBuilder<Initialized<36, T>>

Creates an instance of the DataConsumer_AddSubchannelRequest variant.

Source

pub fn data_consumer_remove_subchannel_request<T>( self, value: T, ) -> BodyBuilder<Initialized<37, T>>

Source

pub fn rtp_observer_add_producer_request<T>( self, value: T, ) -> BodyBuilder<Initialized<38, T>>

Creates an instance of the RtpObserver_AddProducerRequest variant.

Source

pub fn rtp_observer_remove_producer_request<T>( self, value: T, ) -> BodyBuilder<Initialized<39, T>>

Creates an instance of the RtpObserver_RemoveProducerRequest variant.

Source§

impl<const N: u8, T> BodyBuilder<Initialized<N, T>>

Source

pub fn finish(self, builder: &mut Builder) -> UnionOffset<Body>
where Self: WriteAsUnion<Body>,

Finish writing the builder to get an UnionOffset to a serialized Body.

Trait Implementations§

Source§

impl<T: Debug> Debug for BodyBuilder<T>

Source§

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

Formats the value using the given formatter. Read more

Auto Trait Implementations§

§

impl<T> Freeze for BodyBuilder<T>
where T: Freeze,

§

impl<T> RefUnwindSafe for BodyBuilder<T>
where T: RefUnwindSafe,

§

impl<T> Send for BodyBuilder<T>
where T: Send,

§

impl<T> Sync for BodyBuilder<T>
where T: Sync,

§

impl<T> Unpin for BodyBuilder<T>
where T: Unpin,

§

impl<T> UnwindSafe for BodyBuilder<T>
where T: 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.