Module calloop::ping [−][src]
Ping to the event loop
This is an event source that just produces ()
events whevener the associated
Ping::ping
method is called. If the event source is pinged multiple times
between a single dispatching, it'll only generate one event.
This event loop is a simple way of waking up the event loop from an other part of your program
(and is what backs the LoopSignal
). It can also be used as a building
block to construct event sources whose source of event is not file descriptor, but rather an
userspace source (like an other thread).
Structs
Ping | The Ping handle |
PingSource | The ping event source |
Functions
make_ping | Create a new ping event source |