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<'de> Deserialize<'de> for CandidateType
impl<'de> Deserialize<'de> for CandidateType
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>,
Deserialize this value from the given Serde deserializer. Read more
source§impl Display for CandidateType
impl Display for CandidateType
source§impl PartialEq for CandidateType
impl PartialEq 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 ==
.source§impl Serialize for CandidateType
impl Serialize for CandidateType
impl Copy for CandidateType
impl Eq for CandidateType
impl StructuralPartialEq for CandidateType
Auto Trait Implementations§
impl Freeze for CandidateType
impl RefUnwindSafe for CandidateType
impl Send for CandidateType
impl Sync for CandidateType
impl Unpin for CandidateType
impl UnwindSafe for CandidateType
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
Mutably borrows from an owned value. Read more