pub struct SelectedComponent {
pub local: SocketAddr,
pub remote: SocketAddr,
pub ice_generation: u64,
pub local_kind: CandidateType,
pub remote_kind: CandidateType,
}Expand description
The exact ICE pair allowed to carry DTLS and protected media.
Fields§
§local: SocketAddrBound local candidate address.
remote: SocketAddrNominated remote candidate address.
ice_generation: u64ICE generation whose credentials authenticated the pair.
local_kind: CandidateTypeHow the local candidate was obtained.
remote_kind: CandidateTypeHow the remote candidate was obtained.
Implementations§
Source§impl SelectedComponent
impl SelectedComponent
Sourcepub const fn new(
local: SocketAddr,
remote: SocketAddr,
ice_generation: u64,
) -> Self
pub const fn new( local: SocketAddr, remote: SocketAddr, ice_generation: u64, ) -> Self
A host-to-host selected pair.
Sourcepub const fn with_candidate_types(
self,
local_kind: CandidateType,
remote_kind: CandidateType,
) -> Self
pub const fn with_candidate_types( self, local_kind: CandidateType, remote_kind: CandidateType, ) -> Self
Record the candidate types the ICE agent selected.
Trait Implementations§
Source§impl Clone for SelectedComponent
impl Clone for SelectedComponent
Source§fn clone(&self) -> SelectedComponent
fn clone(&self) -> SelectedComponent
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 SelectedComponent
impl Debug for SelectedComponent
Source§impl PartialEq for SelectedComponent
impl PartialEq for SelectedComponent
Source§fn eq(&self, other: &SelectedComponent) -> bool
fn eq(&self, other: &SelectedComponent) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for SelectedComponent
impl Eq for SelectedComponent
impl StructuralPartialEq for SelectedComponent
Auto Trait Implementations§
impl Freeze for SelectedComponent
impl RefUnwindSafe for SelectedComponent
impl Send for SelectedComponent
impl Sync for SelectedComponent
impl Unpin for SelectedComponent
impl UnsafeUnpin for SelectedComponent
impl UnwindSafe for SelectedComponent
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