pub enum RtcIceCandidateType {
Unspecified,
Host,
Srflx,
Prflx,
Relay,
}
Expand description
ICECandidateType represents the type of the ICE candidate used.
Variants§
Unspecified
Unspecified indicates that the candidate type is 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 From<RTCIceCandidateType> for RtcIceCandidateType
impl From<RTCIceCandidateType> for RtcIceCandidateType
Source§fn from(candidate_type: RTCIceCandidateType) -> Self
fn from(candidate_type: RTCIceCandidateType) -> Self
Source§impl From<RtcIceCandidateType> for RTCIceCandidateType
impl From<RtcIceCandidateType> for RTCIceCandidateType
Source§fn from(candidate_type: RtcIceCandidateType) -> Self
fn from(candidate_type: RtcIceCandidateType) -> Self
Source§impl JsonSchema for RtcIceCandidateType
impl JsonSchema for RtcIceCandidateType
Source§fn schema_name() -> String
fn schema_name() -> String
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Source§fn is_referenceable() -> bool
fn is_referenceable() -> bool
$ref
keyword. Read moreSource§impl PartialEq for RtcIceCandidateType
impl PartialEq for RtcIceCandidateType
Source§impl Serialize for RtcIceCandidateType
impl Serialize for RtcIceCandidateType
impl Copy for RtcIceCandidateType
impl Eq for RtcIceCandidateType
impl StructuralPartialEq for RtcIceCandidateType
Auto Trait Implementations§
impl Freeze for RtcIceCandidateType
impl RefUnwindSafe for RtcIceCandidateType
impl Send for RtcIceCandidateType
impl Sync for RtcIceCandidateType
impl Unpin for RtcIceCandidateType
impl UnwindSafe for RtcIceCandidateType
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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
key
and return true
if they are equal.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
key
and return true
if they are equal.Source§impl<T> FutureExt for T
impl<T> FutureExt for T
Source§fn with_context(self, otel_cx: Context) -> WithContext<Self>
fn with_context(self, otel_cx: Context) -> WithContext<Self>
Source§fn with_current_context(self) -> WithContext<Self>
fn with_current_context(self) -> WithContext<Self>
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more