pub struct Gathered {
pub base: LocalBase,
pub base_address: SocketAddr,
pub address: SocketAddr,
pub kind: CandidateType,
pub component: ComponentId,
pub server: Option<IpAddr>,
}Expand description
A candidate the driver gathered, before the agent has priced it.
The agent assigns the foundation and the priority rather than taking them, because both are properties of the set of candidates: §5.1.1.3’s foundation is a counter over distinct tuples, and §5.1.2.1’s local preference “MUST be unique for each” candidate of a type, which is not a fact any single candidate knows about itself.
Fields§
§base: LocalBaseThe socket this candidate was gathered on, and which a check would leave from.
base_address: SocketAddrThat socket’s own address — the candidate’s base in §5.1.1.1’s sense.
address: SocketAddrThe candidate’s transport address. Equal to base_address for a host candidate; the
address a STUN or TURN server reported otherwise.
kind: CandidateTypeHow it was obtained.
component: ComponentIdWhich component of the stream it is for.
server: Option<IpAddr>The IP address of the STUN or TURN server it was obtained from, for reflexive and relayed
candidates. Part of the foundation (§5.1.1.3) and None for a host candidate.
Trait Implementations§
impl Copy for Gathered
impl Eq for Gathered
impl StructuralPartialEq for Gathered
Auto Trait Implementations§
impl Freeze for Gathered
impl RefUnwindSafe for Gathered
impl Send for Gathered
impl Sync for Gathered
impl Unpin for Gathered
impl UnsafeUnpin for Gathered
impl UnwindSafe for Gathered
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
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
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>
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>
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