pub struct NatConfig {
pub local_ports: Vec<u16>,
pub stun_servers: Vec<SocketAddr>,
pub stun_timeout_ms: u64,
pub punch_interval_ms: u64,
pub punch_timeout_ms: u64,
pub turn_servers: Vec<TurnServerConfig>,
pub turn_timeout_ms: u64,
pub turn_keepalive_ms: u64,
}Fields§
§local_ports: Vec<u16>Ports to attempt for local binding (0 means OS-assigned).
stun_servers: Vec<SocketAddr>STUN servers used for public address discovery.
stun_timeout_ms: u64Timeout for STUN binding requests.
punch_interval_ms: u64Interval between hole-punch packets.
punch_timeout_ms: u64Overall hole-punch timeout.
turn_servers: Vec<TurnServerConfig>TURN servers to use for relay allocation.
turn_timeout_ms: u64Timeout for TURN allocations.
turn_keepalive_ms: u64TURN keepalive interval.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for NatConfig
impl RefUnwindSafe for NatConfig
impl Send for NatConfig
impl Sync for NatConfig
impl Unpin for NatConfig
impl UnwindSafe for NatConfig
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