Trait rd_interface::ITcpListener [−][src]
pub trait ITcpListener: Unpin + Send + Sync { #[must_use] fn accept<'life0, 'async_trait>(
&'life0 self
) -> Pin<Box<dyn Future<Output = Result<(TcpStream, SocketAddr)>> + Send + 'async_trait>>
where
'life0: 'async_trait,
Self: 'async_trait; #[must_use] fn local_addr<'life0, 'async_trait>(
&'life0 self
) -> Pin<Box<dyn Future<Output = Result<SocketAddr>> + Send + 'async_trait>>
where
'life0: 'async_trait,
Self: 'async_trait; }
Expand description
A TcpListener.
Required methods
#[must_use]fn accept<'life0, 'async_trait>(
&'life0 self
) -> Pin<Box<dyn Future<Output = Result<(TcpStream, SocketAddr)>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
[src]
#[must_use]
fn accept<'life0, 'async_trait>(&'life0 self
) -> Pin<Box<dyn Future<Output = Result<(TcpStream, SocketAddr)>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
#[must_use]fn local_addr<'life0, 'async_trait>(
&'life0 self
) -> Pin<Box<dyn Future<Output = Result<SocketAddr>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
[src]
#[must_use]
fn local_addr<'life0, 'async_trait>(&'life0 self
) -> Pin<Box<dyn Future<Output = Result<SocketAddr>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,