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
sourceimpl 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
sourceimpl Clone for RTCIceCandidate
impl Clone for RTCIceCandidate
sourcefn clone(&self) -> RTCIceCandidate
fn clone(&self) -> RTCIceCandidate
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl Debug for RTCIceCandidate
impl Debug for RTCIceCandidate
sourceimpl Default for RTCIceCandidate
impl Default for RTCIceCandidate
sourcefn default() -> RTCIceCandidate
fn default() -> RTCIceCandidate
Returns the “default value” for a type. Read more
sourceimpl<'de> Deserialize<'de> for RTCIceCandidate
impl<'de> Deserialize<'de> for RTCIceCandidate
sourcefn 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
sourceimpl Display for RTCIceCandidate
impl Display for RTCIceCandidate
sourceimpl PartialEq<RTCIceCandidate> for RTCIceCandidate
impl PartialEq<RTCIceCandidate> for RTCIceCandidate
sourcefn eq(&self, other: &RTCIceCandidate) -> bool
fn eq(&self, other: &RTCIceCandidate) -> bool
sourceimpl Serialize for RTCIceCandidate
impl Serialize for RTCIceCandidate
impl Eq for RTCIceCandidate
impl StructuralEq 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
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more