pub enum ConnectionType {
Local,
Stun {
urls: String,
},
StunAndTurn {
stun_urls: String,
turn_urls: String,
username: String,
credential: String,
},
}Expand description
Specifies what kind of peer connection to create
Variants§
Local
Within local network
Stun
Setup with STUN server, WAN capabilities but can fail
StunAndTurn
Setup with STUN and TURN servers and fallback to TURN if needed, most stable connection
Trait Implementations§
Source§impl Clone for ConnectionType
impl Clone for ConnectionType
Source§fn clone(&self) -> ConnectionType
fn clone(&self) -> ConnectionType
Returns a duplicate 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 ConnectionType
impl RefUnwindSafe for ConnectionType
impl Send for ConnectionType
impl Sync for ConnectionType
impl Unpin for ConnectionType
impl UnwindSafe for ConnectionType
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