#[non_exhaustive]pub struct Config {
pub ice_candidates: Vec<SocketAddr>,
pub udp_bind: SocketAddr,
}Expand description
Configuration shared by both server publish and server subscribe.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.ice_candidates: Vec<SocketAddr>Public UDP socket addresses that should be advertised as ICE host
candidates. Each is sent as a separate candidate line in the SDP
answer so a remote peer can reach us.
If empty, the mux advertises the bound address, substituting loopback when the socket is bound to an unspecified address. That works for loopback testing but not behind NAT.
udp_bind: SocketAddrAddress the shared WebRTC media socket binds to. Every WHIP/WHEP session
shares this one UDP port (demuxed by ICE ufrag), so a deployment opens
exactly one media port in its firewall. 0.0.0.0:0 (the default) lets
the OS pick a port, which is fine for dev/loopback; production pins it.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Config
impl RefUnwindSafe for Config
impl Send for Config
impl Sync for Config
impl Unpin for Config
impl UnsafeUnpin for Config
impl UnwindSafe for Config
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