Struct nexus::tcp::TcpReactor [] [src]

pub struct TcpReactor<P: TcpProtocol> { /* fields omitted */ }

A Reactor for TCP connections, handles accepting new connections and passing them to the protocol.

Methods

impl<P: TcpProtocol> TcpReactor<P>
[src]

Create a TcpReactor with the associated listener and default configuration.

Create a TcpReactor with the associated listener and specified configuration.

Start and run the Reactor.

Handle to shutdown the Reactor.

spin_once the Reactor for a single iteration.

This is mostly used for test purposes.