Trait webrtc_ice::candidate::Candidate [−][src]
pub trait Candidate: Display {}Show methods
fn foundation(&self) -> String; fn id(&self) -> String; fn component(&self) -> u16; fn set_component(&self, c: u16); fn last_received(&self) -> SystemTime; fn last_sent(&self) -> SystemTime; fn network_type(&self) -> NetworkType; fn address(&self) -> String; fn port(&self) -> u16; fn priority(&self) -> u32; fn related_address(&self) -> Option<CandidateRelatedAddress>; fn candidate_type(&self) -> CandidateType; fn tcp_type(&self) -> TcpType; fn marshal(&self) -> String; #[must_use] fn addr<'life0, 'async_trait>(
&'life0 self
) -> Pin<Box<dyn Future<Output = SocketAddr> + Send + 'async_trait>>
where
'life0: 'async_trait,
Self: 'async_trait; #[must_use] fn close<'life0, 'async_trait>(
&'life0 self
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>>
where
'life0: 'async_trait,
Self: 'async_trait; fn seen(&self, outbound: bool); #[must_use] 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 equal(&self, other: &dyn Candidate) -> bool; #[must_use] 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_agent(&self) -> Option<&Arc<Mutex<AgentInternal>>>; fn get_closed_ch(&self) -> Arc<Mutex<Option<Sender<()>>>>;
Required methods
fn foundation(&self) -> String
[src]
fn id(&self) -> String
[src]
fn component(&self) -> u16
[src]
fn set_component(&self, c: u16)
[src]
fn last_received(&self) -> SystemTime
[src]
fn last_sent(&self) -> SystemTime
[src]
fn network_type(&self) -> NetworkType
[src]
fn address(&self) -> String
[src]
fn port(&self) -> u16
[src]
fn priority(&self) -> u32
[src]
fn related_address(&self) -> Option<CandidateRelatedAddress>
[src]
fn candidate_type(&self) -> CandidateType
[src]
fn tcp_type(&self) -> TcpType
[src]
fn marshal(&self) -> String
[src]
#[must_use]fn addr<'life0, 'async_trait>(
&'life0 self
) -> Pin<Box<dyn Future<Output = SocketAddr> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
[src]
#[must_use]
fn addr<'life0, 'async_trait>(&'life0 self
) -> Pin<Box<dyn Future<Output = SocketAddr> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
#[must_use]fn close<'life0, 'async_trait>(
&'life0 self
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
[src]
#[must_use]
fn close<'life0, 'async_trait>(&'life0 self
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
fn seen(&self, outbound: bool)
[src]
#[must_use]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,
[src]
#[must_use]
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 equal(&self, other: &dyn Candidate) -> bool
[src]
#[must_use]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,
[src]
#[must_use]
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>>
[src]
fn get_agent(&self) -> Option<&Arc<Mutex<AgentInternal>>>
[src]
fn get_closed_ch(&self) -> Arc<Mutex<Option<Sender<()>>>>
[src]
Implementors
impl Candidate for CandidateBase
[src]
impl Candidate for CandidateBase
[src]fn foundation(&self) -> String
[src]
fn id(&self) -> String
[src]
fn component(&self) -> u16
[src]
fn set_component(&self, component: u16)
[src]
fn last_received(&self) -> SystemTime
[src]
fn last_sent(&self) -> SystemTime
[src]
fn network_type(&self) -> NetworkType
[src]
fn address(&self) -> String
[src]
fn port(&self) -> u16
[src]
fn priority(&self) -> u32
[src]
fn related_address(&self) -> Option<CandidateRelatedAddress>
[src]
fn candidate_type(&self) -> CandidateType
[src]
fn tcp_type(&self) -> TcpType
[src]
fn marshal(&self) -> String
[src]
fn addr<'life0, 'async_trait>(
&'life0 self
) -> Pin<Box<dyn Future<Output = SocketAddr> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
[src]
&'life0 self
) -> Pin<Box<dyn Future<Output = SocketAddr> + 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,
[src]
&'life0 self
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
fn seen(&self, outbound: bool)
[src]
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,
[src]
&'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 equal(&self, other: &dyn Candidate) -> bool
[src]
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,
[src]
&'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,