#[non_exhaustive]pub enum WebRTCICECandidateType {
Host,
ServerReflexive,
PeerReflexive,
Relayed,
}Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Host
The candidate is a host candidate, whose IP address as specified in the RTCIceCandidate.address property is in fact the true address of the remote peer.
ServerReflexive
The candidate is a server reflexive candidate; the ip and port are a binding allocated by a NAT for an agent when it sent a packet through the NAT to a server. They can be learned by the STUN server and TURN server to represent the candidate’s peer anonymously.
PeerReflexive
The candidate is a peer reflexive candidate; the ip and port are a binding allocated by a NAT when it sent a STUN request to represent the candidate’s peer anonymously.
Relayed
The candidate is a relay candidate, obtained from a TURN server. The relay candidate’s IP address is an address the TURN server uses to forward the media between the two peers.
Trait Implementations§
Source§impl Clone for WebRTCICECandidateType
impl Clone for WebRTCICECandidateType
Source§fn clone(&self) -> WebRTCICECandidateType
fn clone(&self) -> WebRTCICECandidateType
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for WebRTCICECandidateType
impl Debug for WebRTCICECandidateType
Source§impl From<WebRTCICECandidateType> for Value
Available on crate feature v1_28 only.
impl From<WebRTCICECandidateType> for Value
v1_28 only.Source§fn from(v: WebRTCICECandidateType) -> Self
fn from(v: WebRTCICECandidateType) -> Self
Source§impl<'a> FromValue<'a> for WebRTCICECandidateType
Available on crate feature v1_28 only.
impl<'a> FromValue<'a> for WebRTCICECandidateType
v1_28 only.Source§type Checker = GenericValueTypeChecker<WebRTCICECandidateType>
type Checker = GenericValueTypeChecker<WebRTCICECandidateType>
Source§unsafe fn from_value(value: &'a Value) -> Self
unsafe fn from_value(value: &'a Value) -> Self
Value. Read moreSource§impl HasParamSpec for WebRTCICECandidateType
Available on crate feature v1_28 only.
impl HasParamSpec for WebRTCICECandidateType
v1_28 only.type ParamSpec = ParamSpecEnum
Source§type SetValue = WebRTCICECandidateType
type SetValue = WebRTCICECandidateType
type BuilderFn = fn(&str, WebRTCICECandidateType) -> ParamSpecEnumBuilder<'_, WebRTCICECandidateType>
fn param_spec_builder() -> Self::BuilderFn
Source§impl Hash for WebRTCICECandidateType
impl Hash for WebRTCICECandidateType
Source§impl Ord for WebRTCICECandidateType
impl Ord for WebRTCICECandidateType
Source§fn cmp(&self, other: &WebRTCICECandidateType) -> Ordering
fn cmp(&self, other: &WebRTCICECandidateType) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Source§impl PartialEq for WebRTCICECandidateType
impl PartialEq for WebRTCICECandidateType
Source§impl PartialOrd for WebRTCICECandidateType
impl PartialOrd for WebRTCICECandidateType
Source§impl StaticType for WebRTCICECandidateType
Available on crate feature v1_28 only.
impl StaticType for WebRTCICECandidateType
v1_28 only.Source§fn static_type() -> Type
fn static_type() -> Type
Self.Source§impl ToValue for WebRTCICECandidateType
Available on crate feature v1_28 only.
impl ToValue for WebRTCICECandidateType
v1_28 only.Source§impl ValueType for WebRTCICECandidateType
Available on crate feature v1_28 only.
impl ValueType for WebRTCICECandidateType
v1_28 only.Source§type Type = WebRTCICECandidateType
type Type = WebRTCICECandidateType
Type from. Read moreimpl Copy for WebRTCICECandidateType
impl Eq for WebRTCICECandidateType
impl StructuralPartialEq for WebRTCICECandidateType
Auto Trait Implementations§
impl Freeze for WebRTCICECandidateType
impl RefUnwindSafe for WebRTCICECandidateType
impl Send for WebRTCICECandidateType
impl Sync for WebRTCICECandidateType
impl Unpin for WebRTCICECandidateType
impl UnwindSafe for WebRTCICECandidateType
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoClosureReturnValue for T
impl<T> IntoClosureReturnValue for T
fn into_closure_return_value(self) -> Option<Value>
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 moreSource§impl<T> PropertyGet for Twhere
T: HasParamSpec,
impl<T> PropertyGet for Twhere
T: HasParamSpec,
Source§impl<T> StaticTypeExt for Twhere
T: StaticType,
impl<T> StaticTypeExt for Twhere
T: StaticType,
Source§fn ensure_type()
fn ensure_type()
Source§impl<T> ToSendValue for T
impl<T> ToSendValue for T
Source§fn to_send_value(&self) -> SendValue
fn to_send_value(&self) -> SendValue
SendValue clone of self.