#[repr(u32)]pub enum CandidateType {
Host = 0,
PeerReflexive = 1,
ServerReflexive = 2,
Relayed = 3,
}Expand description
The type of the candidate
Variants§
Host = 0
The candidate is a local network interface
PeerReflexive = 1
The candidate was discovered from incoming data
ServerReflexive = 2
The candidate was discovered by asking an external server (STUN/TURN)
Relayed = 3
The candidate will relay all data through an external server (TURN).
Trait Implementations§
Source§impl Clone for CandidateType
impl Clone for CandidateType
Source§fn clone(&self) -> CandidateType
fn clone(&self) -> CandidateType
Returns a duplicate of the value. Read more
1.0.0§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 From<CandidateType> for RiceCandidateType
impl From<CandidateType> for RiceCandidateType
Source§fn from(value: CandidateType) -> Self
fn from(value: CandidateType) -> Self
Converts to this type from the input type.
Source§impl From<u32> for CandidateType
impl From<u32> for CandidateType
Source§fn from(value: RiceCandidateType) -> Self
fn from(value: RiceCandidateType) -> Self
Converts to this type from the input type.
Source§impl PartialEq for CandidateType
impl PartialEq 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§
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)