pub struct IceCandidateBuilder<State>(/* private fields */);
Expand description
Builder for serializing an instance of the IceCandidate type.
Can be created using the IceCandidate::builder method.
Implementations§
Source§impl IceCandidateBuilder<()>
impl IceCandidateBuilder<()>
Sourcepub fn foundation<T0>(self, value: T0) -> IceCandidateBuilder<(T0,)>
pub fn foundation<T0>(self, value: T0) -> IceCandidateBuilder<(T0,)>
Setter for the foundation
field.
Source§impl<T0> IceCandidateBuilder<(T0,)>
impl<T0> IceCandidateBuilder<(T0,)>
Sourcepub fn priority<T1>(self, value: T1) -> IceCandidateBuilder<(T0, T1)>
pub fn priority<T1>(self, value: T1) -> IceCandidateBuilder<(T0, T1)>
Setter for the priority
field.
Sourcepub fn priority_as_default(self) -> IceCandidateBuilder<(T0, DefaultValue)>
pub fn priority_as_default(self) -> IceCandidateBuilder<(T0, DefaultValue)>
Sets the priority
field to the default value.
Source§impl<T0, T1> IceCandidateBuilder<(T0, T1)>
impl<T0, T1> IceCandidateBuilder<(T0, T1)>
Sourcepub fn address<T2>(self, value: T2) -> IceCandidateBuilder<(T0, T1, T2)>
pub fn address<T2>(self, value: T2) -> IceCandidateBuilder<(T0, T1, T2)>
Setter for the address
field.
Source§impl<T0, T1, T2> IceCandidateBuilder<(T0, T1, T2)>
impl<T0, T1, T2> IceCandidateBuilder<(T0, T1, T2)>
Sourcepub fn protocol<T3>(self, value: T3) -> IceCandidateBuilder<(T0, T1, T2, T3)>
pub fn protocol<T3>(self, value: T3) -> IceCandidateBuilder<(T0, T1, T2, T3)>
Setter for the protocol
field.
Sourcepub fn protocol_as_default(
self,
) -> IceCandidateBuilder<(T0, T1, T2, DefaultValue)>
pub fn protocol_as_default( self, ) -> IceCandidateBuilder<(T0, T1, T2, DefaultValue)>
Sets the protocol
field to the default value.
Source§impl<T0, T1, T2, T3> IceCandidateBuilder<(T0, T1, T2, T3)>
impl<T0, T1, T2, T3> IceCandidateBuilder<(T0, T1, T2, T3)>
Sourcepub fn port<T4>(self, value: T4) -> IceCandidateBuilder<(T0, T1, T2, T3, T4)>
pub fn port<T4>(self, value: T4) -> IceCandidateBuilder<(T0, T1, T2, T3, T4)>
Setter for the port
field.
Sourcepub fn port_as_default(
self,
) -> IceCandidateBuilder<(T0, T1, T2, T3, DefaultValue)>
pub fn port_as_default( self, ) -> IceCandidateBuilder<(T0, T1, T2, T3, DefaultValue)>
Sets the port
field to the default value.
Source§impl<T0, T1, T2, T3, T4> IceCandidateBuilder<(T0, T1, T2, T3, T4)>
impl<T0, T1, T2, T3, T4> IceCandidateBuilder<(T0, T1, T2, T3, T4)>
Sourcepub fn type_<T5>(
self,
value: T5,
) -> IceCandidateBuilder<(T0, T1, T2, T3, T4, T5)>
pub fn type_<T5>( self, value: T5, ) -> IceCandidateBuilder<(T0, T1, T2, T3, T4, T5)>
Setter for the type
field.
Sourcepub fn type_as_default(
self,
) -> IceCandidateBuilder<(T0, T1, T2, T3, T4, DefaultValue)>
pub fn type_as_default( self, ) -> IceCandidateBuilder<(T0, T1, T2, T3, T4, DefaultValue)>
Sets the type
field to the default value.
Source§impl<T0, T1, T2, T3, T4, T5> IceCandidateBuilder<(T0, T1, T2, T3, T4, T5)>
impl<T0, T1, T2, T3, T4, T5> IceCandidateBuilder<(T0, T1, T2, T3, T4, T5)>
Sourcepub fn tcp_type<T6>(
self,
value: T6,
) -> IceCandidateBuilder<(T0, T1, T2, T3, T4, T5, T6)>where
T6: WriteAsOptional<IceCandidateTcpType>,
pub fn tcp_type<T6>(
self,
value: T6,
) -> IceCandidateBuilder<(T0, T1, T2, T3, T4, T5, T6)>where
T6: WriteAsOptional<IceCandidateTcpType>,
Setter for the tcp_type
field.
Sourcepub fn tcp_type_as_null(
self,
) -> IceCandidateBuilder<(T0, T1, T2, T3, T4, T5, ())>
pub fn tcp_type_as_null( self, ) -> IceCandidateBuilder<(T0, T1, T2, T3, T4, T5, ())>
Sets the tcp_type
field to null.
Source§impl<T0, T1, T2, T3, T4, T5, T6> IceCandidateBuilder<(T0, T1, T2, T3, T4, T5, T6)>
impl<T0, T1, T2, T3, T4, T5, T6> IceCandidateBuilder<(T0, T1, T2, T3, T4, T5, T6)>
Sourcepub fn finish(self, builder: &mut Builder) -> Offset<IceCandidate>where
Self: WriteAsOffset<IceCandidate>,
pub fn finish(self, builder: &mut Builder) -> Offset<IceCandidate>where
Self: WriteAsOffset<IceCandidate>,
Finish writing the builder to get an Offset to a serialized IceCandidate.
Trait Implementations§
Source§impl<State: Debug> Debug for IceCandidateBuilder<State>
impl<State: Debug> Debug for IceCandidateBuilder<State>
impl<T0: WriteAs<Offset<str>>, T1: WriteAsDefault<u32, u32>, T2: WriteAs<Offset<str>>, T3: WriteAsDefault<Protocol, Protocol>, T4: WriteAsDefault<u16, u16>, T5: WriteAsDefault<IceCandidateType, IceCandidateType>, T6: WriteAsOptional<IceCandidateTcpType>> WriteAs<Offset<IceCandidate>> for IceCandidateBuilder<(T0, T1, T2, T3, T4, T5, T6)>
impl<T0: WriteAs<Offset<str>>, T1: WriteAsDefault<u32, u32>, T2: WriteAs<Offset<str>>, T3: WriteAsDefault<Protocol, Protocol>, T4: WriteAsDefault<u16, u16>, T5: WriteAsDefault<IceCandidateType, IceCandidateType>, T6: WriteAsOptional<IceCandidateTcpType>> WriteAsOffset<IceCandidate> for IceCandidateBuilder<(T0, T1, T2, T3, T4, T5, T6)>
impl<T0: WriteAs<Offset<str>>, T1: WriteAsDefault<u32, u32>, T2: WriteAs<Offset<str>>, T3: WriteAsDefault<Protocol, Protocol>, T4: WriteAsDefault<u16, u16>, T5: WriteAsDefault<IceCandidateType, IceCandidateType>, T6: WriteAsOptional<IceCandidateTcpType>> WriteAsOptional<Offset<IceCandidate>> for IceCandidateBuilder<(T0, T1, T2, T3, T4, T5, T6)>
Auto Trait Implementations§
impl<State> Freeze for IceCandidateBuilder<State>where
State: Freeze,
impl<State> RefUnwindSafe for IceCandidateBuilder<State>where
State: RefUnwindSafe,
impl<State> Send for IceCandidateBuilder<State>where
State: Send,
impl<State> Sync for IceCandidateBuilder<State>where
State: Sync,
impl<State> Unpin for IceCandidateBuilder<State>where
State: Unpin,
impl<State> UnwindSafe for IceCandidateBuilder<State>where
State: UnwindSafe,
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more