Struct webrtc_ice::candidate::candidate_base::CandidateBase
source · [−]pub struct CandidateBase { /* private fields */ }
Implementations
sourceimpl 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
sourceimpl Candidate for CandidateBase
impl Candidate for CandidateBase
sourcefn last_received(&self) -> SystemTime
fn last_received(&self) -> SystemTime
Returns a time indicating the last time this candidate was received.
sourcefn last_sent(&self) -> SystemTime
fn last_sent(&self) -> SystemTime
Returns a time indicating the last time this candidate was sent.
sourcefn network_type(&self) -> NetworkType
fn network_type(&self) -> NetworkType
Returns candidate NetworkType.
Returns Option<CandidateRelatedAddress>
.
sourcefn candidate_type(&self) -> CandidateType
fn candidate_type(&self) -> CandidateType
Returns candidate type.
sourcefn close<'life0, 'async_trait>(
&'life0 self
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
fn close<'life0, 'async_trait>(
&'life0 self
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
Stops the recvLoop.
sourcefn 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. Read more
fn set_component(&self, component: u16)
fn tcp_type(&self) -> TcpType
fn addr<'life0, 'async_trait>(
&'life0 self
) -> Pin<Box<dyn Future<Output = SocketAddr> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
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
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Self: 'async_trait,
fn set_ip<'life0, 'life1, 'async_trait>(
&'life0 self,
ip: &'life1 IpAddr
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
fn get_conn(&self) -> Option<&Arc<dyn Conn + Send + Sync>>
fn get_closed_ch(&self) -> Arc<Mutex<Option<Sender<()>>>>
sourceimpl Default for CandidateBase
impl Default for CandidateBase
Auto Trait Implementations
impl !RefUnwindSafe for CandidateBase
impl Send for CandidateBase
impl Sync for CandidateBase
impl Unpin for CandidateBase
impl !UnwindSafe for CandidateBase
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more