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

Creates an instance of the Transport_SendRtcpNotification variant.

source

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

source

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

Creates an instance of the Producer_SendNotification variant.

source

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

Creates an instance of the DataProducer_SendNotification variant.

source

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

Creates an instance of the Transport_TraceNotification variant.

source

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

source

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

source

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

source

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

Creates an instance of the PlainTransport_TupleNotification variant.

source

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

source

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

Creates an instance of the DirectTransport_RtcpNotification variant.

source

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

Creates an instance of the Producer_ScoreNotification variant.

source

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

Creates an instance of the Producer_TraceNotification variant.

source

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

source

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

Creates an instance of the Consumer_LayersChangeNotification variant.

source

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

Creates an instance of the Consumer_RtpNotification variant.

source

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

Creates an instance of the Consumer_ScoreNotification variant.

source

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

Creates an instance of the Consumer_TraceNotification variant.

source

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

Creates an instance of the DataConsumer_MessageNotification variant.

source

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

source

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

source

pub fn audio_level_observer_volumes_notification<T>( self, value: T ) -> BodyBuilder<Initialized<22, 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> 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>,

§

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>,

§

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.