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: StringThe STUN server to use for Binding requests, as host:port. May be empty.
turn_serv_addr: StringThe TURN server to allocate from, as host:port.
local_addr: SocketAddrThe local address the client sends from.
transport_protocol: TransportProtocolWhether to reach the server over UDP or TCP.
username: StringThe long-term credential username for the TURN server.
password: StringThe long-term credential password.
realm: StringThe authentication realm, used in the MESSAGE-INTEGRITY computation.
software: StringAn optional SOFTWARE attribute value, sent for diagnostics.
rto_in_ms: u64The initial retransmission timeout in milliseconds; each retry doubles it.
Auto Trait Implementations§
impl Freeze for ClientConfig
impl RefUnwindSafe for ClientConfig
impl Send for ClientConfig
impl Sync for ClientConfig
impl Unpin for ClientConfig
impl UnsafeUnpin for ClientConfig
impl UnwindSafe for ClientConfig
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