Struct VoiceOptions
zaun_client::VoiceOptions · Struct
pub struct VoiceOptions { … }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
Section titled “Fields”allow_direct: bool
Section titled “allow_direct: bool”Also 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>
Section titled “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: bool
Section titled “self_mute: bool”Join muted.
self_deaf: bool
Section titled “self_deaf: bool”Join deafened.
turn_tls_roots: Vec<Vec<u8>>
Section titled “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
Section titled “Trait implementations”Clone, Debug, Default