pub struct IceCandidate {
pub foundation: String,
pub priority: u32,
pub address: SocketAddr,
pub typ: IceCandidateType,
pub transport: String,
pub related_address: Option<SocketAddr>,
pub component: u16,
pub tcptype: Option<String>,
}Fields§
§foundation: String§priority: u32§address: SocketAddr§typ: IceCandidateType§transport: String§component: u16§tcptype: Option<String>TCP candidate type: “active”, “passive”, or “so” (for TCP candidates only)
Implementations§
Source§impl IceCandidate
impl IceCandidate
pub fn host(address: SocketAddr, component: u16) -> Self
pub fn tcp(address: SocketAddr, component: u16, tcptype: &str) -> Self
pub fn base_address(&self) -> SocketAddr
pub fn to_sdp(&self) -> String
pub fn from_sdp(sdp: &str) -> Result<Self>
Trait Implementations§
Source§impl Clone for IceCandidate
impl Clone for IceCandidate
Source§fn clone(&self) -> IceCandidate
fn clone(&self) -> IceCandidate
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 IceCandidate
impl Debug for IceCandidate
impl Eq for IceCandidate
Source§impl PartialEq for IceCandidate
impl PartialEq for IceCandidate
Source§fn eq(&self, other: &IceCandidate) -> bool
fn eq(&self, other: &IceCandidate) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for IceCandidate
Auto Trait Implementations§
impl Freeze for IceCandidate
impl RefUnwindSafe for IceCandidate
impl Send for IceCandidate
impl Sync for IceCandidate
impl Unpin for IceCandidate
impl UnsafeUnpin for IceCandidate
impl UnwindSafe for IceCandidate
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.