Struct mio::tcp::TcpListener  
            
                [−]
            
        [src]
pub struct TcpListener {
    // some fields omitted
}Methods
impl TcpListener
fn bind(addr: &SocketAddr) -> Result<TcpListener>
fn accept(&self) -> Result<Option<TcpStream>>
Accepts a new TcpStream.
Returns a Ok(None) when the socket WOULDBLOCK, this means the stream will be ready at
a later point.
fn local_addr(&self) -> Result<SocketAddr>
fn try_clone(&self) -> Result<TcpListener>
impl TcpListener
fn bind(addr: &SocketAddr) -> Result<TcpListener>
fn accept(&self) -> Result<Option<TcpStream>>
Accepts a new TcpStream.
Returns a Ok(None) when the socket WOULDBLOCK, this means the stream will be ready at
a later point.