pub struct ICECandidate {
pub candidate: String,
pub sdp_mid: Option<String>,
pub sdp_mline_index: Option<u16>,
pub username_fragment: Option<String>,
}
Expand description
ICECandidate is used to serialize ice candidates
https://developer.mozilla.org/en-US/docs/Web/API/RTCIceCandidate/RTCIceCandidate#candidateinfo
Fields§
§candidate: String
A string describing the properties of the candidate, taken directly from the SDP attribute “candidate”. The candidate string specifies the network connectivity information for the candidate. If the candidate is an empty string (“”), the end of the candidate list has been reached; this candidate is known as the “end-of-candidates” marker.SDP string describing the properties of the candidate
sdp_mid: Option<String>
An optional string containing the identification tag of the media stream with which the candidate is associated
sdp_mline_index: Option<u16>
A number property containing the zero-based index of the m-line with which the candidate is associated, within the SDP of the media description, or None if no such associated exists.
username_fragment: Option<String>
A string containing the username fragment (usually referred to in shorthand as “ufrag” or “ice-ufrag”). This fragment, along with the ICE password (“ice-pwd”), uniquely identifies a single ongoing ICE interaction (including for any communication with the STUN server).
The string is generated by WebRTC at the beginning of the session. It may be up to 256 characters long, and at least 24 bits must contain random data. It has no default value and is not present unless set explicitly.
Trait Implementations§
Source§impl Clone for ICECandidate
impl Clone for ICECandidate
Source§fn clone(&self) -> ICECandidate
fn clone(&self) -> ICECandidate
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more