#[non_exhaustive]pub struct IceServerBuilder { /* private fields */ }
Expand description
A builder for IceServer
.
Implementations§
source§impl IceServerBuilder
impl IceServerBuilder
sourcepub fn uris(self, input: impl Into<String>) -> Self
pub fn uris(self, input: impl Into<String>) -> Self
Appends an item to uris
.
To override the contents of this collection use set_uris
.
An array of URIs, in the form specified in the I-D.petithuguenin-behave-turn-uris spec. These URIs provide the different addresses and/or protocols that can be used to reach the TURN server.
sourcepub fn set_uris(self, input: Option<Vec<String>>) -> Self
pub fn set_uris(self, input: Option<Vec<String>>) -> Self
An array of URIs, in the form specified in the I-D.petithuguenin-behave-turn-uris spec. These URIs provide the different addresses and/or protocols that can be used to reach the TURN server.
sourcepub fn get_uris(&self) -> &Option<Vec<String>>
pub fn get_uris(&self) -> &Option<Vec<String>>
An array of URIs, in the form specified in the I-D.petithuguenin-behave-turn-uris spec. These URIs provide the different addresses and/or protocols that can be used to reach the TURN server.
sourcepub fn set_username(self, input: Option<String>) -> Self
pub fn set_username(self, input: Option<String>) -> Self
A username to login to the ICE server.
sourcepub fn get_username(&self) -> &Option<String>
pub fn get_username(&self) -> &Option<String>
A username to login to the ICE server.
sourcepub fn set_password(self, input: Option<String>) -> Self
pub fn set_password(self, input: Option<String>) -> Self
A password to login to the ICE server.
sourcepub fn get_password(&self) -> &Option<String>
pub fn get_password(&self) -> &Option<String>
A password to login to the ICE server.
sourcepub fn ttl(self, input: i32) -> Self
pub fn ttl(self, input: i32) -> Self
The period of time, in seconds, during which the username and password are valid.
sourcepub fn set_ttl(self, input: Option<i32>) -> Self
pub fn set_ttl(self, input: Option<i32>) -> Self
The period of time, in seconds, during which the username and password are valid.
Trait Implementations§
source§impl Clone for IceServerBuilder
impl Clone for IceServerBuilder
source§fn clone(&self) -> IceServerBuilder
fn clone(&self) -> IceServerBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for IceServerBuilder
impl Debug for IceServerBuilder
source§impl Default for IceServerBuilder
impl Default for IceServerBuilder
source§fn default() -> IceServerBuilder
fn default() -> IceServerBuilder
source§impl PartialEq for IceServerBuilder
impl PartialEq for IceServerBuilder
source§fn eq(&self, other: &IceServerBuilder) -> bool
fn eq(&self, other: &IceServerBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for IceServerBuilder
Auto Trait Implementations§
impl Freeze for IceServerBuilder
impl RefUnwindSafe for IceServerBuilder
impl Send for IceServerBuilder
impl Sync for IceServerBuilder
impl Unpin for IceServerBuilder
impl UnwindSafe for IceServerBuilder
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
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more