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
sourceimpl Clone for RTCIceCandidateType
impl Clone for RTCIceCandidateType
sourcefn clone(&self) -> RTCIceCandidateType
fn clone(&self) -> RTCIceCandidateType
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresourceimpl Debug for RTCIceCandidateType
impl Debug for RTCIceCandidateType
sourceimpl Default for RTCIceCandidateType
impl Default for RTCIceCandidateType
sourceimpl<'de> Deserialize<'de> for RTCIceCandidateType
impl<'de> Deserialize<'de> for RTCIceCandidateType
sourcefn 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>,
sourceimpl Display for RTCIceCandidateType
impl Display for RTCIceCandidateType
sourceimpl From<&str> for RTCIceCandidateType
impl From<&str> for RTCIceCandidateType
takes a string and converts it into ICECandidateType