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 for RTCIceCandidate
impl PartialEq 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 ==
.source§impl Serialize for RTCIceCandidate
impl Serialize for RTCIceCandidate
impl Eq for RTCIceCandidate
impl StructuralPartialEq for RTCIceCandidate
Auto Trait Implementations§
impl RefUnwindSafe for RTCIceCandidate
impl Send for RTCIceCandidate
impl Sync for RTCIceCandidate
impl Unpin for RTCIceCandidate
impl UnwindSafe for RTCIceCandidate
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more