RtcIceCandidateStats

Struct RtcIceCandidateStats 

Source
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.

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 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: RtcIceCandidateType

Type 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.

§related_address: Option<String>§related_port: Option<i32>§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

Source§

fn clone(&self) -> RtcIceCandidateStats

Returns a duplicate of the value. Read more
1.0.0§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for RtcIceCandidateStats

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<'de> Deserialize<'de> for RtcIceCandidateStats

Source§

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 Hash for RtcIceCandidateStats

Source§

fn hash<__H: Hasher>(&self, state: &mut __H)

Feeds this value into the given Hasher. Read more
1.3.0§

fn hash_slice<H>(data: &[Self], state: &mut H)
where H: Hasher, Self: Sized,

Feeds a slice of this type into the given Hasher. Read more
Source§

impl PartialEq for RtcIceCandidateStats

Source§

fn eq(&self, other: &RtcIceCandidateStats) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl Serialize for RtcIceCandidateStats

Source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more
Source§

impl Eq for RtcIceCandidateStats

Source§

impl StructuralPartialEq for RtcIceCandidateStats

Auto Trait Implementations§

Blanket Implementations§

§

impl<T> Any for T
where T: 'static + ?Sized,

§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
§

impl<T> Borrow<T> for T
where T: ?Sized,

§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
§

impl<T> BorrowMut<T> for T
where T: ?Sized,

§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
§

impl<T> CloneToUninit for T
where T: Clone,

§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
§

impl<T> From<T> for T

§

fn from(t: T) -> T

Returns the argument unchanged.

§

impl<T, U> Into<U> for T
where U: From<T>,

§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

§

impl<T> ToOwned for T
where T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

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

The type returned in the event of a conversion error.
§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

Source§

fn vzip(self) -> V

Source§

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