pub struct Candidate { /* private fields */ }
Implementations§
Source§impl Candidate
impl Candidate
pub fn foundation(&self) -> String
Sourcepub fn set_component(&mut self, component: u16)
pub fn set_component(&mut self, component: u16)
Sets candidate component.
Sourcepub fn last_received(&self) -> Instant
pub fn last_received(&self) -> Instant
Returns a time indicating the last time this candidate was received.
Sourcepub fn last_sent(&self) -> Instant
pub fn last_sent(&self) -> Instant
Returns a time indicating the last time this candidate was sent.
Sourcepub fn network_type(&self) -> NetworkType
pub fn network_type(&self) -> NetworkType
Returns candidate NetworkType.
Returns Option<CandidateRelatedAddress>
.
Sourcepub fn candidate_type(&self) -> CandidateType
pub fn candidate_type(&self) -> CandidateType
Returns candidate type.
pub fn tcp_type(&self) -> TcpType
pub fn addr(&self) -> SocketAddr
pub fn seen(&mut self, outbound: bool)
Source§impl Candidate
impl Candidate
pub fn set_last_received(&mut self, now: Instant)
pub fn set_last_sent(&mut self, now: Instant)
Sourcepub fn local_preference(&self) -> u16
pub fn local_preference(&self) -> u16
Returns the local preference for this candidate.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Candidate
impl RefUnwindSafe for Candidate
impl Send for Candidate
impl Sync for Candidate
impl Unpin for Candidate
impl UnwindSafe for Candidate
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