Struct webrtc_ice::candidate::CandidatePair
source · pub struct CandidatePair {
pub remote: Arc<dyn Candidate + Send + Sync>,
pub local: Arc<dyn Candidate + Send + Sync>,
/* private fields */
}
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§
source§impl CandidatePair
impl CandidatePair
pub fn new( local: Arc<dyn Candidate + Send + Sync>, remote: Arc<dyn Candidate + Send + Sync>, controlling: bool ) -> Self
sourcepub fn priority(&self) -> u64
pub fn priority(&self) -> u64
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)
pub async fn write(&self, b: &[u8]) -> Result<usize, Error>
Trait Implementations§
source§impl Debug for CandidatePair
impl Debug for CandidatePair
source§impl Default for CandidatePair
impl Default for CandidatePair
source§impl Display for CandidatePair
impl Display for CandidatePair
source§impl PartialEq<CandidatePair> for CandidatePair
impl PartialEq<CandidatePair> for CandidatePair
Auto Trait Implementations§
impl !RefUnwindSafe for CandidatePair
impl Send for CandidatePair
impl Sync for CandidatePair
impl Unpin for CandidatePair
impl !UnwindSafe for CandidatePair
Blanket Implementations§
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