Enum webrtc_ice::candidate::CandidateType
source · pub enum CandidateType {
Unspecified,
Host,
ServerReflexive,
PeerReflexive,
Relay,
}
Expand description
Represents the type of candidate CandidateType
enum.
Variants§
Implementations§
source§impl CandidateType
impl CandidateType
sourcepub const fn preference(self) -> u16
pub const fn preference(self) -> u16
Returns the preference weight of a CandidateType
.
4.1.2.2. Guidelines for Choosing Type and Local Preferences The RECOMMENDED values are 126 for host candidates, 100 for server reflexive candidates, 110 for peer reflexive candidates, and 0 for relayed candidates.
Trait Implementations§
source§impl Clone for CandidateType
impl Clone for CandidateType
source§fn clone(&self) -> CandidateType
fn clone(&self) -> CandidateType
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for CandidateType
impl Debug for CandidateType
source§impl Default for CandidateType
impl Default for CandidateType
source§impl Display for CandidateType
impl Display for CandidateType
source§impl PartialEq<CandidateType> for CandidateType
impl PartialEq<CandidateType> for CandidateType
source§fn eq(&self, other: &CandidateType) -> bool
fn eq(&self, other: &CandidateType) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.