Struct webrtc_ice::candidate::CandidatePair [−][src]
pub struct CandidatePair { pub remote: Arc<dyn Candidate + Send + Sync>, pub local: Arc<dyn Candidate + Send + Sync>, // some fields omitted }
Expand description
Represents a combination of a local and remote candidate.
Fields
remote: Arc<dyn Candidate + Send + Sync>
local: Arc<dyn Candidate + Send + Sync>
Implementations
pub fn new(
local: Arc<dyn Candidate + Send + Sync>,
remote: Arc<dyn Candidate + Send + Sync>,
controlling: bool
) -> Self
RFC 5245 - 5.7.2. Computing Pair Priority and Ordering Pairs Let G be the priority for the candidate provided by the controlling agent. Let D be the priority for the candidate provided by the controlled agent. pair priority = 2^32MIN(G,D) + 2MAX(G,D) + (G>D?1:0)