Trait hyper::net::NetworkListener [-]  [+] [src]

pub trait NetworkListener {
    type Acceptor: NetworkAcceptor;

    fn listen<To: ToSocketAddr>(&mut self, addr: To) -> IoResult<Acceptor>;
}

An abstraction to listen for connections on a certain port.

Associated Types

type Acceptor: NetworkAcceptor

Required Methods

fn listen<To: ToSocketAddr>(&mut self, addr: To) -> IoResult<Acceptor>

Listens on a socket.

Implementors