Module dharma::dispatcher
[−]
[src]
Handling system events (epoll
wrapper).
This module provides functionality to implement main program loop by waiting for system events
using epoll
mechanism.
Source of events is represented by EventHandler
s, while whole loop by Dispatcher
s.
LocalDispatcher
can be used for single-thread programs when EventHandler
do not implement
Send
while Dispatcher
is meant for multi-threaded programs. DispatcherController
and
LocalDispatcherController
are used to control Dispatcher
and LocalDispatcher
respectively.
Reexports
pub use event_kind::EventKind; |
Modules
event_kind |
This module contains flags defining kind of event. |
Structs
Dispatcher |
Structure representing dispatcher of system events for use in multi-threaded program. |
DispatcherController |
Helps controlling |
LocalDispatcher |
Structure representing dispatcher of system events for use in one-threaded program. |
LocalDispatcherController |
Helps controlling |
Traits
EventHandler |
Trait for all structures supposed to be handlers for events registered in |
Type Definitions
EventHandlerId |
Id of |