Skip to main content

ClientConfig

Struct ClientConfig 

Source
pub struct ClientConfig {
    pub stun_serv_addr: String,
    pub turn_serv_addr: String,
    pub local_addr: SocketAddr,
    pub transport_protocol: TransportProtocol,
    pub username: String,
    pub password: String,
    pub realm: String,
    pub software: String,
    pub rto_in_ms: u64,
}
Expand description

ClientConfig is a bag of config parameters for Client.

Fields§

§stun_serv_addr: String

The STUN server to use for Binding requests, as host:port. May be empty.

§turn_serv_addr: String

The TURN server to allocate from, as host:port.

§local_addr: SocketAddr

The local address the client sends from.

§transport_protocol: TransportProtocol

Whether to reach the server over UDP or TCP.

§username: String

The long-term credential username for the TURN server.

§password: String

The long-term credential password.

§realm: String

The authentication realm, used in the MESSAGE-INTEGRITY computation.

§software: String

An optional SOFTWARE attribute value, sent for diagnostics.

§rto_in_ms: u64

The initial retransmission timeout in milliseconds; each retry doubles it.

Auto Trait Implementations§

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> Same for T

Source§

type Output = T

Should always be Self
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.