Expand description
A Resource
is defined as an object that can return a mutable reference to a Source
.
Source
is the trait that mio
uses to register in the poll in order to wake up
asynchronously from events.
Your Remote
and Local
entities must implement Resource
.
Returns a mutable reference to the internal Source
.
Note: All mio
network element implements Source
, you probably wants to use
one of them as a base for your non-blocking transport.
See Source
.