pub enum ExternalIpCandidateType {
Host,
ServerReflexive,
}Expand description
How external_ip is advertised in ICE candidates.
Variants§
Host
Replace each non-loopback host candidate’s address with external_ip.
ServerReflexive
Keep the host candidate on the bind address and advertise
external_ip alongside it as a server-reflexive candidate
(1:1 NAT, RFC 8445 §5.1.1.2). WebRTC mode only.
Trait Implementations§
Source§impl Clone for ExternalIpCandidateType
impl Clone for ExternalIpCandidateType
impl Copy for ExternalIpCandidateType
Source§impl Debug for ExternalIpCandidateType
impl Debug for ExternalIpCandidateType
Source§impl Default for ExternalIpCandidateType
impl Default for ExternalIpCandidateType
Source§impl<'de> Deserialize<'de> for ExternalIpCandidateType
impl<'de> Deserialize<'de> for ExternalIpCandidateType
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for ExternalIpCandidateType
Source§impl PartialEq for ExternalIpCandidateType
impl PartialEq for ExternalIpCandidateType
Source§impl Serialize for ExternalIpCandidateType
impl Serialize for ExternalIpCandidateType
impl StructuralPartialEq for ExternalIpCandidateType
Auto Trait Implementations§
impl Freeze for ExternalIpCandidateType
impl RefUnwindSafe for ExternalIpCandidateType
impl Send for ExternalIpCandidateType
impl Sync for ExternalIpCandidateType
impl Unpin for ExternalIpCandidateType
impl UnsafeUnpin for ExternalIpCandidateType
impl UnwindSafe for ExternalIpCandidateType
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.