mediasoup_sys::fbs::response

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_dump_response<T>(self, value: T) -> BodyBuilder<Initialized<1, T>>

Creates an instance of the Worker_DumpResponse variant.

Source

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

Creates an instance of the Worker_ResourceUsageResponse variant.

Source

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

Creates an instance of the WebRtcServer_DumpResponse variant.

Source

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

Creates an instance of the Router_DumpResponse variant.

Source

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

Creates an instance of the Transport_ProduceResponse variant.

Source

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

Creates an instance of the Transport_ConsumeResponse variant.

Source

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

Creates an instance of the Transport_RestartIceResponse variant.

Source

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

Creates an instance of the PlainTransport_ConnectResponse variant.

Source

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

Creates an instance of the PlainTransport_DumpResponse variant.

Source

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

Creates an instance of the PlainTransport_GetStatsResponse variant.

Source

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

Creates an instance of the PipeTransport_ConnectResponse variant.

Source

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

Creates an instance of the PipeTransport_DumpResponse variant.

Source

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

Creates an instance of the PipeTransport_GetStatsResponse variant.

Source

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

Creates an instance of the DirectTransport_DumpResponse variant.

Source

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

Creates an instance of the DirectTransport_GetStatsResponse variant.

Source

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

Creates an instance of the WebRtcTransport_ConnectResponse variant.

Source

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

Creates an instance of the WebRtcTransport_DumpResponse variant.

Source

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

Creates an instance of the WebRtcTransport_GetStatsResponse variant.

Source

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

Creates an instance of the Producer_DumpResponse variant.

Source

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

Creates an instance of the Producer_GetStatsResponse variant.

Source

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

Creates an instance of the Consumer_DumpResponse variant.

Source

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

Creates an instance of the Consumer_GetStatsResponse variant.

Source

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

Creates an instance of the Consumer_SetPreferredLayersResponse variant.

Source

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

Creates an instance of the Consumer_SetPriorityResponse variant.

Source

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

Creates an instance of the DataProducer_DumpResponse variant.

Source

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

Creates an instance of the DataProducer_GetStatsResponse variant.

Source

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

Source

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

Creates an instance of the DataConsumer_DumpResponse variant.

Source

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

Creates an instance of the DataConsumer_GetStatsResponse variant.

Source

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

Creates an instance of the DataConsumer_SetSubchannelsResponse variant.

Source

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

Creates an instance of the DataConsumer_AddSubchannelResponse variant.

Source

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

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.