pub struct ValidatedCandidate {
pub id: CandidateId,
pub address: SocketAddr,
pub source: DiscoverySourceType,
pub priority: u32,
pub rtt: Option<Duration>,
pub reliability_score: f64,
}Expand description
Validated candidate with metadata
Fields§
§id: CandidateId§address: SocketAddr§source: DiscoverySourceType§priority: u32§rtt: Option<Duration>§reliability_score: f64Implementations§
Source§impl ValidatedCandidate
impl ValidatedCandidate
Sourcepub fn to_candidate_address(&self) -> CandidateAddress
pub fn to_candidate_address(&self) -> CandidateAddress
Convert to CandidateAddress with proper NAT traversal source type
Trait Implementations§
Source§impl Clone for ValidatedCandidate
impl Clone for ValidatedCandidate
Source§fn clone(&self) -> ValidatedCandidate
fn clone(&self) -> ValidatedCandidate
Returns a duplicate of the value. Read more
1.0.0 · 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 ValidatedCandidate
impl Debug for ValidatedCandidate
Source§impl PartialEq for ValidatedCandidate
impl PartialEq for ValidatedCandidate
impl StructuralPartialEq for ValidatedCandidate
Auto Trait Implementations§
impl Freeze for ValidatedCandidate
impl RefUnwindSafe for ValidatedCandidate
impl Send for ValidatedCandidate
impl Sync for ValidatedCandidate
impl Unpin for ValidatedCandidate
impl UnwindSafe for ValidatedCandidate
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