Struct medea_client_api_proto::stats::RtcIceCandidateStats[][src]

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>,
}

Properties of a candidate in Section 15.1 of RFC 5245. It corresponds to a RTCIceTransport object.

RtcStatsType::LocalCandidate or RtcStatsType::RemoteCandidate variant.

Full doc on W3C.

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

impl Clone for RtcIceCandidateStats[src]

impl Debug for RtcIceCandidateStats[src]

impl<'de> Deserialize<'de> for RtcIceCandidateStats[src]

impl Hash for RtcIceCandidateStats[src]

impl PartialEq<RtcIceCandidateStats> for RtcIceCandidateStats[src]

impl Serialize for RtcIceCandidateStats[src]

impl StructuralPartialEq for RtcIceCandidateStats[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.