Struct webrtc::ice_transport::ice_candidate::RTCIceCandidate
source · pub struct RTCIceCandidate {
pub stats_id: String,
pub foundation: String,
pub priority: u32,
pub address: String,
pub protocol: RTCIceProtocol,
pub port: u16,
pub typ: RTCIceCandidateType,
pub component: u16,
pub related_address: String,
pub related_port: u16,
pub tcp_type: String,
}
Expand description
ICECandidate represents a ice candidate
Fields§
§stats_id: String
§foundation: String
§priority: u32
§address: String
§protocol: RTCIceProtocol
§port: u16
§typ: RTCIceCandidateType
§component: u16
§tcp_type: String
Implementations§
source§impl RTCIceCandidate
impl RTCIceCandidate
sourcepub fn to_json(&self) -> Result<RTCIceCandidateInit>
pub fn to_json(&self) -> Result<RTCIceCandidateInit>
to_json returns an ICECandidateInit as indicated by the spec https://w3c.github.io/webrtc-pc/#dom-rtcicecandidate-tojson
Trait Implementations§
source§impl Clone for RTCIceCandidate
impl Clone for RTCIceCandidate
source§fn clone(&self) -> RTCIceCandidate
fn clone(&self) -> RTCIceCandidate
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 RTCIceCandidate
impl Debug for RTCIceCandidate
source§impl Default for RTCIceCandidate
impl Default for RTCIceCandidate
source§fn default() -> RTCIceCandidate
fn default() -> RTCIceCandidate
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for RTCIceCandidate
impl<'de> Deserialize<'de> for RTCIceCandidate
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 RTCIceCandidate
impl Display for RTCIceCandidate
source§impl PartialEq<RTCIceCandidate> for RTCIceCandidate
impl PartialEq<RTCIceCandidate> for RTCIceCandidate
source§fn eq(&self, other: &RTCIceCandidate) -> bool
fn eq(&self, other: &RTCIceCandidate) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.