pub struct RtcIceCandidateStats {
pub transport_id: Option<String>,
pub address: Option<String>,
pub port: u16,
pub protocol: Protocol,
pub candidate_type: CandidateType,
pub priority: u32,
pub url: Option<String>,
pub relay_protocol: Option<Protocol>,
}
Expand description
Properties of a candidate
in Section 15.1 of RFC 5245.
It corresponds to a RTCIceTransport object.
RtcStatsType::LocalCandidate
or RtcStatsType::RemoteCandidate
variant.
Fields§
§transport_id: Option<String>
Unique ID that is associated to the object that was inspected to produce the RTCTransportStats associated with this candidate.
address: Option<String>
Address of the candidate, allowing for IPv4 addresses, IPv6 addresses, and fully qualified domain names (FQDNs).
port: u16
Port number of the candidate.
protocol: Protocol
Valid values for transport is one of udp
and tcp
.
candidate_type: CandidateType
Type of the ICE candidate.
priority: u32
Calculated as defined in Section 15.1 of RFC 5245.
url: Option<String>
For local candidates this is the URL of the ICE server from which the candidate was obtained. It is the same as the url surfaced in the RTCPeerConnectionIceEvent.
None
for remote candidates.
relay_protocol: Option<Protocol>
Protocol used by the endpoint to communicate with the TURN server.
Only present for local candidates.
Trait Implementations§
source§impl Clone for RtcIceCandidateStats
impl Clone for RtcIceCandidateStats
source§fn clone(&self) -> RtcIceCandidateStats
fn clone(&self) -> RtcIceCandidateStats
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for RtcIceCandidateStats
impl Debug for RtcIceCandidateStats
source§impl<'de> Deserialize<'de> for RtcIceCandidateStats
impl<'de> Deserialize<'de> for RtcIceCandidateStats
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>,
source§impl Hash for RtcIceCandidateStats
impl Hash for RtcIceCandidateStats
source§impl PartialEq<RtcIceCandidateStats> for RtcIceCandidateStats
impl PartialEq<RtcIceCandidateStats> for RtcIceCandidateStats
source§fn eq(&self, other: &RtcIceCandidateStats) -> bool
fn eq(&self, other: &RtcIceCandidateStats) -> bool
self
and other
values to be equal, and is used
by ==
.