pub struct RemoteCandidate {
pub id: RemoteId,
pub address: SocketAddr,
pub kind: CandidateType,
pub component: ComponentId,
pub foundation: RemoteFoundation,
pub priority: Priority,
}Expand description
A remote candidate: one the peer signalled, or one §7.3.1.3 learned from a check.
Fields§
§id: RemoteIdIts identity, stable for the life of the agent.
address: SocketAddrWhere to send a check.
kind: CandidateTypeHow the peer obtained it, or CandidateType::PeerReflexive when it was learned here.
component: ComponentIdWhich component it is for.
foundation: RemoteFoundationIts foundation.
priority: PriorityIts priority, as the peer computed it. Range-checked to RFC 8839 §5.1’s 1..=2^31−1 by
Priority itself — which is what keeps §6.1.2.3’s pair-priority arithmetic inside a
u64, so nothing here re-checks or widens it.
Implementations§
Source§impl RemoteCandidate
impl RemoteCandidate
Sourcepub fn signalled(id: RemoteId, candidate: &Candidate) -> Option<Self>
pub fn signalled(id: RemoteId, candidate: &Candidate) -> Option<Self>
The remote candidate an a=candidate line describes.
None when the line names a transport sipx does not check over: RFC 8839 §5.1’s grammar
admits a transport-extension, and spec §3 says such a line is accepted and discarded
rather than failing the description a usable candidate arrived in.
Trait Implementations§
Source§impl Clone for RemoteCandidate
impl Clone for RemoteCandidate
Source§fn clone(&self) -> RemoteCandidate
fn clone(&self) -> RemoteCandidate
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for RemoteCandidate
impl Debug for RemoteCandidate
Source§impl PartialEq for RemoteCandidate
impl PartialEq for RemoteCandidate
Source§fn eq(&self, other: &RemoteCandidate) -> bool
fn eq(&self, other: &RemoteCandidate) -> bool
self and other values to be equal, and is used by ==.impl Eq for RemoteCandidate
impl StructuralPartialEq for RemoteCandidate
Auto Trait Implementations§
impl Freeze for RemoteCandidate
impl RefUnwindSafe for RemoteCandidate
impl Send for RemoteCandidate
impl Sync for RemoteCandidate
impl Unpin for RemoteCandidate
impl UnsafeUnpin for RemoteCandidate
impl UnwindSafe for RemoteCandidate
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