#[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 ==
.