pub struct ValidPair {
pub component: ComponentId,
pub local: LocalId,
pub remote: SocketAddr,
pub priority: u64,
pub nominated: bool,
pub generated_by: PairId,
}Expand description
A pair in a valid list (§7.2.5.3.2).
Not a CandidatePair, and deliberately so: §7.2.5.3.2 builds it from the mapped address
of the response and the address the request was sent to, so “it will be very common that the
valid pair will not be in any checklist” — its local candidate is the reflexive address a NAT
showed us, and every checklist pair had its reflexive locals replaced by their bases.
Fields§
§component: ComponentIdThe component it serves.
local: LocalIdThe local candidate the check went out from — which is what the driver must send on.
remote: SocketAddrThe remote address the check was sent to.
priority: u64Its pair priority (§6.1.2.3).
nominated: boolWhether it has been nominated (§7.2.5.3.4, §7.3.1.5).
generated_by: PairIdThe checklist pair whose check produced it.
Trait Implementations§
impl Eq for ValidPair
impl StructuralPartialEq for ValidPair
Auto Trait Implementations§
impl Freeze for ValidPair
impl RefUnwindSafe for ValidPair
impl Send for ValidPair
impl Sync for ValidPair
impl Unpin for ValidPair
impl UnsafeUnpin for ValidPair
impl UnwindSafe for ValidPair
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