Struct mediasoup_sys::fbs::notification::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>
impl BodyBuilder<Uninitialized>
sourcepub fn transport_send_rtcp_notification<T>(
self,
value: T
) -> BodyBuilder<Initialized<1, T>>where
T: WriteAsOffset<SendRtcpNotification>,
pub fn transport_send_rtcp_notification<T>(
self,
value: T
) -> BodyBuilder<Initialized<1, T>>where
T: WriteAsOffset<SendRtcpNotification>,
Creates an instance of the Transport_SendRtcpNotification
variant.
sourcepub fn transport_sctp_state_change_notification<T>(
self,
value: T
) -> BodyBuilder<Initialized<2, T>>where
T: WriteAsOffset<SctpStateChangeNotification>,
pub fn transport_sctp_state_change_notification<T>(
self,
value: T
) -> BodyBuilder<Initialized<2, T>>where
T: WriteAsOffset<SctpStateChangeNotification>,
Creates an instance of the Transport_SctpStateChangeNotification
variant.
sourcepub fn producer_send_notification<T>(
self,
value: T
) -> BodyBuilder<Initialized<3, T>>where
T: WriteAsOffset<SendNotification>,
pub fn producer_send_notification<T>(
self,
value: T
) -> BodyBuilder<Initialized<3, T>>where
T: WriteAsOffset<SendNotification>,
Creates an instance of the Producer_SendNotification
variant.
sourcepub fn data_producer_send_notification<T>(
self,
value: T
) -> BodyBuilder<Initialized<4, T>>where
T: WriteAsOffset<SendNotification>,
pub fn data_producer_send_notification<T>(
self,
value: T
) -> BodyBuilder<Initialized<4, T>>where
T: WriteAsOffset<SendNotification>,
Creates an instance of the DataProducer_SendNotification
variant.
sourcepub fn transport_trace_notification<T>(
self,
value: T
) -> BodyBuilder<Initialized<5, T>>where
T: WriteAsOffset<TraceNotification>,
pub fn transport_trace_notification<T>(
self,
value: T
) -> BodyBuilder<Initialized<5, T>>where
T: WriteAsOffset<TraceNotification>,
Creates an instance of the Transport_TraceNotification
variant.
sourcepub fn web_rtc_transport_ice_selected_tuple_change_notification<T>(
self,
value: T
) -> BodyBuilder<Initialized<6, T>>where
T: WriteAsOffset<IceSelectedTupleChangeNotification>,
pub fn web_rtc_transport_ice_selected_tuple_change_notification<T>(
self,
value: T
) -> BodyBuilder<Initialized<6, T>>where
T: WriteAsOffset<IceSelectedTupleChangeNotification>,
Creates an instance of the WebRtcTransport_IceSelectedTupleChangeNotification
variant.
sourcepub fn web_rtc_transport_ice_state_change_notification<T>(
self,
value: T
) -> BodyBuilder<Initialized<7, T>>where
T: WriteAsOffset<IceStateChangeNotification>,
pub fn web_rtc_transport_ice_state_change_notification<T>(
self,
value: T
) -> BodyBuilder<Initialized<7, T>>where
T: WriteAsOffset<IceStateChangeNotification>,
Creates an instance of the WebRtcTransport_IceStateChangeNotification
variant.
sourcepub fn web_rtc_transport_dtls_state_change_notification<T>(
self,
value: T
) -> BodyBuilder<Initialized<8, T>>where
T: WriteAsOffset<DtlsStateChangeNotification>,
pub fn web_rtc_transport_dtls_state_change_notification<T>(
self,
value: T
) -> BodyBuilder<Initialized<8, T>>where
T: WriteAsOffset<DtlsStateChangeNotification>,
Creates an instance of the WebRtcTransport_DtlsStateChangeNotification
variant.
sourcepub fn plain_transport_tuple_notification<T>(
self,
value: T
) -> BodyBuilder<Initialized<9, T>>where
T: WriteAsOffset<TupleNotification>,
pub fn plain_transport_tuple_notification<T>(
self,
value: T
) -> BodyBuilder<Initialized<9, T>>where
T: WriteAsOffset<TupleNotification>,
Creates an instance of the PlainTransport_TupleNotification
variant.
sourcepub fn plain_transport_rtcp_tuple_notification<T>(
self,
value: T
) -> BodyBuilder<Initialized<10, T>>where
T: WriteAsOffset<RtcpTupleNotification>,
pub fn plain_transport_rtcp_tuple_notification<T>(
self,
value: T
) -> BodyBuilder<Initialized<10, T>>where
T: WriteAsOffset<RtcpTupleNotification>,
Creates an instance of the PlainTransport_RtcpTupleNotification
variant.
sourcepub fn direct_transport_rtcp_notification<T>(
self,
value: T
) -> BodyBuilder<Initialized<11, T>>where
T: WriteAsOffset<RtcpNotification>,
pub fn direct_transport_rtcp_notification<T>(
self,
value: T
) -> BodyBuilder<Initialized<11, T>>where
T: WriteAsOffset<RtcpNotification>,
Creates an instance of the DirectTransport_RtcpNotification
variant.
sourcepub fn producer_score_notification<T>(
self,
value: T
) -> BodyBuilder<Initialized<12, T>>where
T: WriteAsOffset<ScoreNotification>,
pub fn producer_score_notification<T>(
self,
value: T
) -> BodyBuilder<Initialized<12, T>>where
T: WriteAsOffset<ScoreNotification>,
Creates an instance of the Producer_ScoreNotification
variant.
sourcepub fn producer_trace_notification<T>(
self,
value: T
) -> BodyBuilder<Initialized<13, T>>where
T: WriteAsOffset<TraceNotification>,
pub fn producer_trace_notification<T>(
self,
value: T
) -> BodyBuilder<Initialized<13, T>>where
T: WriteAsOffset<TraceNotification>,
Creates an instance of the Producer_TraceNotification
variant.
sourcepub fn producer_video_orientation_change_notification<T>(
self,
value: T
) -> BodyBuilder<Initialized<14, T>>where
T: WriteAsOffset<VideoOrientationChangeNotification>,
pub fn producer_video_orientation_change_notification<T>(
self,
value: T
) -> BodyBuilder<Initialized<14, T>>where
T: WriteAsOffset<VideoOrientationChangeNotification>,
Creates an instance of the Producer_VideoOrientationChangeNotification
variant.
sourcepub fn consumer_layers_change_notification<T>(
self,
value: T
) -> BodyBuilder<Initialized<15, T>>where
T: WriteAsOffset<LayersChangeNotification>,
pub fn consumer_layers_change_notification<T>(
self,
value: T
) -> BodyBuilder<Initialized<15, T>>where
T: WriteAsOffset<LayersChangeNotification>,
Creates an instance of the Consumer_LayersChangeNotification
variant.
sourcepub fn consumer_rtp_notification<T>(
self,
value: T
) -> BodyBuilder<Initialized<16, T>>where
T: WriteAsOffset<RtpNotification>,
pub fn consumer_rtp_notification<T>(
self,
value: T
) -> BodyBuilder<Initialized<16, T>>where
T: WriteAsOffset<RtpNotification>,
Creates an instance of the Consumer_RtpNotification
variant.
sourcepub fn consumer_score_notification<T>(
self,
value: T
) -> BodyBuilder<Initialized<17, T>>where
T: WriteAsOffset<ScoreNotification>,
pub fn consumer_score_notification<T>(
self,
value: T
) -> BodyBuilder<Initialized<17, T>>where
T: WriteAsOffset<ScoreNotification>,
Creates an instance of the Consumer_ScoreNotification
variant.
sourcepub fn consumer_trace_notification<T>(
self,
value: T
) -> BodyBuilder<Initialized<18, T>>where
T: WriteAsOffset<TraceNotification>,
pub fn consumer_trace_notification<T>(
self,
value: T
) -> BodyBuilder<Initialized<18, T>>where
T: WriteAsOffset<TraceNotification>,
Creates an instance of the Consumer_TraceNotification
variant.
sourcepub fn data_consumer_message_notification<T>(
self,
value: T
) -> BodyBuilder<Initialized<19, T>>where
T: WriteAsOffset<MessageNotification>,
pub fn data_consumer_message_notification<T>(
self,
value: T
) -> BodyBuilder<Initialized<19, T>>where
T: WriteAsOffset<MessageNotification>,
Creates an instance of the DataConsumer_MessageNotification
variant.
sourcepub fn data_consumer_buffered_amount_low_notification<T>(
self,
value: T
) -> BodyBuilder<Initialized<20, T>>where
T: WriteAsOffset<BufferedAmountLowNotification>,
pub fn data_consumer_buffered_amount_low_notification<T>(
self,
value: T
) -> BodyBuilder<Initialized<20, T>>where
T: WriteAsOffset<BufferedAmountLowNotification>,
Creates an instance of the DataConsumer_BufferedAmountLowNotification
variant.
sourcepub fn active_speaker_observer_dominant_speaker_notification<T>(
self,
value: T
) -> BodyBuilder<Initialized<21, T>>where
T: WriteAsOffset<DominantSpeakerNotification>,
pub fn active_speaker_observer_dominant_speaker_notification<T>(
self,
value: T
) -> BodyBuilder<Initialized<21, T>>where
T: WriteAsOffset<DominantSpeakerNotification>,
Creates an instance of the ActiveSpeakerObserver_DominantSpeakerNotification
variant.
sourcepub fn audio_level_observer_volumes_notification<T>(
self,
value: T
) -> BodyBuilder<Initialized<22, T>>where
T: WriteAsOffset<VolumesNotification>,
pub fn audio_level_observer_volumes_notification<T>(
self,
value: T
) -> BodyBuilder<Initialized<22, T>>where
T: WriteAsOffset<VolumesNotification>,
Creates an instance of the AudioLevelObserver_VolumesNotification
variant.
source§impl<const N: u8, T> BodyBuilder<Initialized<N, T>>
impl<const N: u8, T> BodyBuilder<Initialized<N, T>>
sourcepub fn finish(self, builder: &mut Builder) -> UnionOffset<Body>where
Self: WriteAsUnion<Body>,
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.