pub struct VoiceOptions {
pub allow_direct: bool,
pub host_ip: Option<IpAddr>,
pub self_mute: bool,
pub self_deaf: bool,
pub turn_tls_roots: Vec<Vec<u8>>,
}Expand description
How a voice session connects.
By default media goes through the host’s TURN relay, and peers see only the relay’s
address. The relay sees this device’s address and the encrypted frames. The relay is
reached as the host lists it: turn: over UDP or TCP, or turns: over TLS 1.3 with the
post-quantum X25519MLKEM768 key exchange (a relay without it is refused).
Fields§
§allow_direct: boolAlso offer peers a direct path to this device’s own address, when the host allows it
(ice_policy all or direct). The other participants then learn this device’s IP
address, so ask the user first. Off by default: media is relayed, and a join to a host
without a relay is refused.
host_ip: Option<IpAddr>The address the stay’s socket binds to; None takes the address that reaches the
TURN server (or, without one, the default route). It is offered to peers only with
allow_direct.
self_mute: boolJoin muted.
self_deaf: boolJoin deafened.
turn_tls_roots: Vec<Vec<u8>>Certificate authorities (DER) to trust for turns: relays besides the Mozilla roots,
for a host whose relay has a certificate from a private authority.
Trait Implementations§
Source§impl Clone for VoiceOptions
impl Clone for VoiceOptions
Source§fn clone(&self) -> VoiceOptions
fn clone(&self) -> VoiceOptions
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more