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 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 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