pub struct NatConfig {
pub max_candidates: usize,
pub enable_symmetric_nat: bool,
pub enable_relay_fallback: bool,
pub max_concurrent_attempts: usize,
pub prefer_rfc_nat_traversal: bool,
}Expand description
NAT traversal specific configuration
These options control how the endpoint discovers external addresses, coordinates hole punching, and handles NAT traversal failures.
Fields§
§max_candidates: usizeMaximum number of address candidates to track
enable_symmetric_nat: boolEnable symmetric NAT prediction algorithms
enable_relay_fallback: boolEnable automatic relay fallback when direct connection fails
max_concurrent_attempts: usizeMaximum concurrent NAT traversal attempts
prefer_rfc_nat_traversal: boolPrefer RFC-compliant NAT traversal frame format
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