mediasoup_sys::fbs::response

Struct ResponseBuilder

Source
pub struct ResponseBuilder<State>(/* private fields */);
Expand description

Builder for serializing an instance of the Response type.

Can be created using the Response::builder method.

Implementations§

Source§

impl ResponseBuilder<()>

Source

pub fn id<T0>(self, value: T0) -> ResponseBuilder<(T0,)>
where T0: WriteAsDefault<u32, u32>,

Setter for the id field.

Source

pub fn id_as_default(self) -> ResponseBuilder<(DefaultValue,)>

Sets the id field to the default value.

Source§

impl<T0> ResponseBuilder<(T0,)>

Source

pub fn accepted<T1>(self, value: T1) -> ResponseBuilder<(T0, T1)>
where T1: WriteAsDefault<bool, bool>,

Setter for the accepted field.

Source

pub fn accepted_as_default(self) -> ResponseBuilder<(T0, DefaultValue)>

Sets the accepted field to the default value.

Source§

impl<T0, T1> ResponseBuilder<(T0, T1)>

Source

pub fn body<T2>(self, value: T2) -> ResponseBuilder<(T0, T1, T2)>

Setter for the body field.

Source

pub fn body_as_null(self) -> ResponseBuilder<(T0, T1, ())>

Sets the body field to null.

Source§

impl<T0, T1, T2> ResponseBuilder<(T0, T1, T2)>

Source

pub fn error<T3>(self, value: T3) -> ResponseBuilder<(T0, T1, T2, T3)>

Setter for the error field.

Source

pub fn error_as_null(self) -> ResponseBuilder<(T0, T1, T2, ())>

Sets the error field to null.

Source§

impl<T0, T1, T2, T3> ResponseBuilder<(T0, T1, T2, T3)>

Source

pub fn reason<T4>(self, value: T4) -> ResponseBuilder<(T0, T1, T2, T3, T4)>

Setter for the reason field.

Source

pub fn reason_as_null(self) -> ResponseBuilder<(T0, T1, T2, T3, ())>

Sets the reason field to null.

Source§

impl<T0, T1, T2, T3, T4> ResponseBuilder<(T0, T1, T2, T3, T4)>

Source

pub fn finish(self, builder: &mut Builder) -> Offset<Response>
where Self: WriteAsOffset<Response>,

Finish writing the builder to get an Offset to a serialized Response.

Trait Implementations§

Auto Trait Implementations§

§

impl<State> Freeze for ResponseBuilder<State>
where State: Freeze,

§

impl<State> RefUnwindSafe for ResponseBuilder<State>
where State: RefUnwindSafe,

§

impl<State> Send for ResponseBuilder<State>
where State: Send,

§

impl<State> Sync for ResponseBuilder<State>
where State: Sync,

§

impl<State> Unpin for ResponseBuilder<State>
where State: Unpin,

§

impl<State> UnwindSafe for ResponseBuilder<State>
where State: 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.