pub enum RTCIceCandidateType {
Unspecified,
Host,
Srflx,
Prflx,
Relay,
}
Expand description
ICECandidateType represents the type of the ICE candidate used.
Variants§
Unspecified
Host
ICECandidateTypeHost indicates that the candidate is of Host type as described in https://tools.ietf.org/html/rfc8445#section-5.1.1.1. A candidate obtained by binding to a specific port from an IP address on the host. This includes IP addresses on physical interfaces and logical ones, such as ones obtained through VPNs.
Srflx
ICECandidateTypeSrflx indicates the the candidate is of Server Reflexive type as described https://tools.ietf.org/html/rfc8445#section-5.1.1.2. A candidate type whose IP address and port are a binding allocated by a NAT for an ICE agent after it sends a packet through the NAT to a server, such as a STUN server.
Prflx
ICECandidateTypePrflx indicates that the candidate is of Peer Reflexive type. A candidate type whose IP address and port are a binding allocated by a NAT for an ICE agent after it sends a packet through the NAT to its peer.
Relay
ICECandidateTypeRelay indicates the the candidate is of Relay type as described in https://tools.ietf.org/html/rfc8445#section-5.1.1.2. A candidate type obtained from a relay server, such as a TURN server.
Trait Implementations§
source§impl Clone for RTCIceCandidateType
impl Clone for RTCIceCandidateType
source§fn clone(&self) -> RTCIceCandidateType
fn clone(&self) -> RTCIceCandidateType
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for RTCIceCandidateType
impl Debug for RTCIceCandidateType
source§impl Default for RTCIceCandidateType
impl Default for RTCIceCandidateType
source§fn default() -> RTCIceCandidateType
fn default() -> RTCIceCandidateType
source§impl<'de> Deserialize<'de> for RTCIceCandidateType
impl<'de> Deserialize<'de> for RTCIceCandidateType
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>,
source§impl Display for RTCIceCandidateType
impl Display for RTCIceCandidateType
source§impl From<&str> for RTCIceCandidateType
impl From<&str> for RTCIceCandidateType
takes a string and converts it into ICECandidateType
source§impl From<CandidateType> for RTCIceCandidateType
impl From<CandidateType> for RTCIceCandidateType
source§fn from(candidate_type: CandidateType) -> Self
fn from(candidate_type: CandidateType) -> Self
source§impl PartialEq for RTCIceCandidateType
impl PartialEq for RTCIceCandidateType
source§fn eq(&self, other: &RTCIceCandidateType) -> bool
fn eq(&self, other: &RTCIceCandidateType) -> bool
self
and other
values to be equal, and is used
by ==
.