mediasoup_sys::fbs::producer

Struct TraceInfoBuilder

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

Builder for serializing an instance of the TraceInfo type.

Can be created using the TraceInfo::builder method.

Implementations§

Source§

impl TraceInfoBuilder<Uninitialized>

Source

pub fn key_frame_trace_info<T>( self, value: T, ) -> TraceInfoBuilder<Initialized<1, T>>

Creates an instance of the KeyFrameTraceInfo variant.

Source

pub fn fir_trace_info<T>(self, value: T) -> TraceInfoBuilder<Initialized<2, T>>

Creates an instance of the FirTraceInfo variant.

Source

pub fn pli_trace_info<T>(self, value: T) -> TraceInfoBuilder<Initialized<3, T>>

Creates an instance of the PliTraceInfo variant.

Source

pub fn rtp_trace_info<T>(self, value: T) -> TraceInfoBuilder<Initialized<4, T>>

Creates an instance of the RtpTraceInfo variant.

Source

pub fn sr_trace_info<T>(self, value: T) -> TraceInfoBuilder<Initialized<5, T>>

Creates an instance of the SrTraceInfo variant.

Source§

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

Source

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

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

Trait Implementations§

Source§

impl<T: Debug> Debug for TraceInfoBuilder<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 TraceInfoBuilder<T>
where T: Freeze,

§

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

§

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

§

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

§

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

§

impl<T> UnwindSafe for TraceInfoBuilder<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.