pub enum IceCandidateType {
Host,
Srflx,
Prflx,
Relay,
}
Expand description
ICE candidate type.
Variants§
Host
The candidate is a host candidate, whose IP address as specified in the
IceCandidate::address
property is in fact the true address of the remote peer.
Srflx
The candidate is a server reflexive candidate; the IceCandidate::address
indicates an
intermediary address assigned by the STUN server to represent the candidate’s peer
anonymously.
Prflx
The candidate is a peer reflexive candidate; the IceCandidate::address
is an intermediary
address assigned by the STUN server to represent the candidate’s peer anonymously.
Relay
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 IceCandidateType
impl Clone for IceCandidateType
source§fn clone(&self) -> IceCandidateType
fn clone(&self) -> IceCandidateType
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 IceCandidateType
impl Debug for IceCandidateType
source§impl<'de> Deserialize<'de> for IceCandidateType
impl<'de> Deserialize<'de> for IceCandidateType
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 Hash for IceCandidateType
impl Hash for IceCandidateType
source§impl Ord for IceCandidateType
impl Ord for IceCandidateType
source§fn cmp(&self, other: &IceCandidateType) -> Ordering
fn cmp(&self, other: &IceCandidateType) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl PartialEq for IceCandidateType
impl PartialEq for IceCandidateType
source§impl PartialOrd for IceCandidateType
impl PartialOrd for IceCandidateType
source§impl Serialize for IceCandidateType
impl Serialize for IceCandidateType
impl Copy for IceCandidateType
impl Eq for IceCandidateType
impl StructuralPartialEq for IceCandidateType
Auto Trait Implementations§
impl Freeze for IceCandidateType
impl RefUnwindSafe for IceCandidateType
impl Send for IceCandidateType
impl Sync for IceCandidateType
impl Unpin for IceCandidateType
impl UnwindSafe for IceCandidateType
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)source§impl<T> CloneToUninit for Twhere
T: Copy,
impl<T> CloneToUninit for Twhere
T: Copy,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)