pub struct CandidatePair {
pub id: PairId,
pub local: LocalId,
pub remote: RemoteId,
pub component: ComponentId,
pub foundation: PairFoundation,
pub priority: u64,
pub state: PairState,
pub nominated: bool,
}Expand description
One entry in a checklist (§6.1.2.2, figure 5).
Fields§
§id: PairIdIts identity.
local: LocalIdThe local candidate, by index into the agent’s table.
remote: RemoteIdThe remote candidate, by index into the agent’s table.
component: ComponentIdThe component both candidates are for.
foundation: PairFoundationThe combination of the two candidates’ foundations.
priority: u64§6.1.2.3’s pair priority. Recomputed on every role change, because G and D swap.
state: PairStateIts state.
nominated: boolWhether a check on this pair carried USE-CANDIDATE and succeeded (§7.2.5.3.4).
Implementations§
Source§impl CandidatePair
impl CandidatePair
Sourcepub const fn is_discardable(&self) -> bool
pub const fn is_discardable(&self) -> bool
Whether §6.1.2.5 may discard this pair.
A pair with a check in flight or a check that succeeded is holding state outside the checklist — a transaction, or an entry in the valid list — and removing it silently would lose that rather than bound anything.
Trait Implementations§
Source§impl Clone for CandidatePair
impl Clone for CandidatePair
Source§fn clone(&self) -> CandidatePair
fn clone(&self) -> CandidatePair
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for CandidatePair
impl Debug for CandidatePair
Source§impl PartialEq for CandidatePair
impl PartialEq for CandidatePair
Source§fn eq(&self, other: &CandidatePair) -> bool
fn eq(&self, other: &CandidatePair) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Eq for CandidatePair
impl StructuralPartialEq for CandidatePair
Auto Trait Implementations§
impl Freeze for CandidatePair
impl RefUnwindSafe for CandidatePair
impl Send for CandidatePair
impl Sync for CandidatePair
impl Unpin for CandidatePair
impl UnsafeUnpin 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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more