pub struct Reactor<R: Write + Read, Id: PeerId = SocketAddr> { /* private fields */ }
Expand description

A single-threaded non-blocking reactor.

Trait Implementations

Construct a new reactor, given a channel to send events on.

Run the given service with the reactor.

Return a new waker.

Used to wake up the main event loop.

The type of waker this reactor uses.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.