Struct nexus::Reactor [] [src]

pub struct Reactor<P: Protocol>(_, _);

A Reactor runs the event loop and manages sockets

Methods

impl<P: Protocol> Reactor<P>
[src]

Add socket to the Reactor.

Add socket to the Reactor with a timeout.

Remove the socket associated to the token from the Reactor.

Update the socket associated to the token from the Reactor.

Update the socket associated to the token from the Reactor with a timeout.

impl<P: Protocol> Reactor<P>
[src]

Create a new Reactor with the default options.

Create a new Reactor with the 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.