#[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 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 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 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.
Trait Implementations§
source§impl Clone for IceServerBuilder
impl Clone for IceServerBuilder
source§fn clone(&self) -> IceServerBuilder
fn clone(&self) -> IceServerBuilder
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
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
Returns the “default value” for a type. Read more
source§impl PartialEq<IceServerBuilder> for IceServerBuilder
impl PartialEq<IceServerBuilder> for IceServerBuilder
source§fn eq(&self, other: &IceServerBuilder) -> bool
fn eq(&self, other: &IceServerBuilder) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for IceServerBuilder
Auto Trait Implementations§
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
Mutably borrows from an owned value. Read more