pub struct P2PConfig {
pub ice_servers: Vec<String>,
pub turn_servers: Vec<TurnServer>,
pub connection_timeout_secs: u64,
pub max_retries: u32,
pub auto_fallback: bool,
}Expand description
P2P connection configuration
Fields§
§ice_servers: Vec<String>ICE servers for NAT traversal (STUN/TURN URLs)
turn_servers: Vec<TurnServer>Optional TURN servers for symmetric NAT traversal
connection_timeout_secs: u64Connection timeout duration
max_retries: u32Maximum retry attempts for failed connections
auto_fallback: boolWhether to automatically fall back to server relay on P2P failure
Trait Implementations§
Auto Trait Implementations§
impl Freeze for P2PConfig
impl RefUnwindSafe for P2PConfig
impl Send for P2PConfig
impl Sync for P2PConfig
impl Unpin for P2PConfig
impl UnsafeUnpin for P2PConfig
impl UnwindSafe for P2PConfig
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