Struct webrtc_ice::candidate::candidate_base::CandidateBase
source · pub struct CandidateBase { /* private fields */ }
Implementations§
source§impl CandidateBase
impl CandidateBase
pub fn set_last_received(&self, d: Duration)
pub fn set_last_sent(&self, d: Duration)
sourcepub fn local_preference(&self) -> u16
pub fn local_preference(&self) -> u16
Returns the local preference for this candidate.
Trait Implementations§
source§impl Candidate for CandidateBase
impl Candidate for CandidateBase
source§fn last_received(&self) -> SystemTime
fn last_received(&self) -> SystemTime
Returns a time indicating the last time this candidate was received.
source§fn last_sent(&self) -> SystemTime
fn last_sent(&self) -> SystemTime
Returns a time indicating the last time this candidate was sent.
source§fn network_type(&self) -> NetworkType
fn network_type(&self) -> NetworkType
Returns candidate NetworkType.
Returns Option<CandidateRelatedAddress>
.
source§fn candidate_type(&self) -> CandidateType
fn candidate_type(&self) -> CandidateType
Returns candidate type.
source§fn close<'life0, 'async_trait>(
&'life0 self
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn close<'life0, 'async_trait>(
&'life0 self
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Stops the recvLoop.
source§fn foundation(&self) -> String
fn foundation(&self) -> String
An arbitrary string used in the freezing algorithm to
group similar candidates. It is the same for two candidates that
have the same type, base IP address, protocol (UDP, TCP, etc.),
and STUN or TURN server.
fn set_component(&self, component: u16)
fn tcp_type(&self) -> TcpType
fn addr(&self) -> SocketAddr
fn seen(&self, outbound: bool)
fn write_to<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
raw: &'life1 [u8],
dst: &'life2 (dyn Candidate + Send + Sync)
) -> Pin<Box<dyn Future<Output = Result<usize, Error>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
fn set_ip(&self, ip: &IpAddr) -> Result<(), Error>
fn get_conn(&self) -> Option<&Arc<dyn Conn + Send + Sync>>
fn get_closed_ch(&self) -> Arc<Mutex<Option<Sender<()>>>>
source§impl Default for CandidateBase
impl Default for CandidateBase
Auto Trait Implementations§
impl !Freeze for CandidateBase
impl !RefUnwindSafe for CandidateBase
impl Send for CandidateBase
impl Sync for CandidateBase
impl Unpin for CandidateBase
impl !UnwindSafe for CandidateBase
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