Enum webrtc_ice::udp_network::UDPNetwork
source · pub enum UDPNetwork {
Ephemeral(EphemeralUDP),
Muxed(Arc<dyn UDPMux + Send + Sync>),
}
Expand description
Configuration for the underlying UDP network stack. There are two ways to configure this Ephemeral and Muxed.
Ephemeral mode
In Ephemeral mode sockets are created and bound to random ports during ICE
gathering. The ports to use can be restricted by setting EphemeralUDP::port_min
and
EphemeralUDP::port_max
in which case only ports in this range will be used.
Muxed
In muxed mode a single UDP socket is used and all connections are muxed over this single socket.
Variants§
Trait Implementations§
source§impl Clone for UDPNetwork
impl Clone for UDPNetwork
source§fn clone(&self) -> UDPNetwork
fn clone(&self) -> UDPNetwork
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreAuto Trait Implementations§
impl Freeze for UDPNetwork
impl !RefUnwindSafe for UDPNetwork
impl Send for UDPNetwork
impl Sync for UDPNetwork
impl Unpin for UDPNetwork
impl !UnwindSafe for UDPNetwork
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