pub struct RtcIceCandidateStats {Show 14 fields
pub transport_id: Option<String>,
pub address: Option<String>,
pub port: Option<i32>,
pub protocol: Option<String>,
pub candidate_type: RtcIceCandidateType,
pub priority: Option<i32>,
pub url: Option<String>,
pub relay_protocol: Option<IceServerTransportProtocol>,
pub foundation: Option<String>,
pub related_address: Option<String>,
pub related_port: Option<i32>,
pub username_fragment: Option<String>,
pub tcp_type: Option<RtcIceTcpCandidateType>,
pub network_type: Option<String>,
}Expand description
Properties of a candidate in Section 15.1 of RFC5245.
It corresponds to a RTCIceCandidate object.
Fields§
§transport_id: Option<String>Unique ID that is associated to the object that was inspected to produce
the RtcTransportStats associated with the candidate.
address: Option<String>Address of the candidate, allowing for IPv4 addresses, IPv6 addresses, and fully qualified domain names (FQDNs).
See RFC5245 Section 15.1 for details.
port: Option<i32>Port number of the candidate.
protocol: Option<String>Valid values for transport is one of udp and tcp.
Based on the transport defined in RFC5245 Section 15.1.
candidate_type: RtcIceCandidateTypeType of the ICE candidate.
priority: Option<i32>Priority calculated as defined in RFC5245 Section 15.1.
url: Option<String>For local candidates of type KnownRtcIceCandidateType::Srflx or type
KnownRtcIceCandidateType::Relay this is the URL of the ICE server
from which the candidate was obtained and defined in WebRTC.
For remote candidates, this property MUST NOT be present.
relay_protocol: Option<IceServerTransportProtocol>Protocol used by the endpoint to communicate with the TURN server.
This is only present for local relay candidates and defined in WebRTC.
For remote candidates, this property MUST NOT be present.
foundation: Option<String>ICE foundation as defined in RFC5245 Section 15.1.
ICE rel-addr as defined in RFC5245 Section 15.1.
Only set for KnownRtcIceCandidateType::Srflx,
KnownRtcIceCandidateType::Prflx and
KnownRtcIceCandidateType::Relay candidates.
ICE rel-port as defined in RFC5245 Section 15.1.
Only set for KnownRtcIceCandidateType::Srflx,
KnownRtcIceCandidateType::Prflx and
KnownRtcIceCandidateType::Relay candidates.
username_fragment: Option<String>ICE username fragment as defined in RFC5245 section 7.1.2.3.
For KnownRtcIceCandidateType::Prflx remote candidates this is not
set unless the ICE username fragment has been previously signaled.
tcp_type: Option<RtcIceTcpCandidateType>ICE candidate TCP type, as defined іn RtcIceTcpCandidateType and
used in RTCIceCandidate.
network_type: Option<String>Type of network used by a local ICE candidate.
Not spec compliant, but provided by most user agents.
Trait Implementations§
Source§impl Clone for RtcIceCandidateStats
impl Clone for RtcIceCandidateStats
Source§fn clone(&self) -> RtcIceCandidateStats
fn clone(&self) -> RtcIceCandidateStats
1.0.0§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 for RtcIceCandidateStats
impl PartialEq for RtcIceCandidateStats
Source§impl Serialize for RtcIceCandidateStats
impl Serialize for RtcIceCandidateStats
impl Eq for RtcIceCandidateStats
impl StructuralPartialEq for RtcIceCandidateStats
Auto Trait Implementations§
impl Freeze for RtcIceCandidateStats
impl RefUnwindSafe for RtcIceCandidateStats
impl Send for RtcIceCandidateStats
impl Sync for RtcIceCandidateStats
impl Unpin for RtcIceCandidateStats
impl UnwindSafe for RtcIceCandidateStats
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
§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)
clone_to_uninit)