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
sourceimpl 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
sourceimpl Debug for CandidatePair
impl Debug for CandidatePair
sourceimpl Default for CandidatePair
impl Default for CandidatePair
sourceimpl Display for CandidatePair
impl Display for CandidatePair
sourceimpl 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
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