Module rs::event_loop::driver
source · [−]Expand description
This drives the loop from the loop
module.
The tracker loop needs to be driven somehow, and connected to the external world, both on the side of receiving and sending events.
That’s going to be implementation-dependent, connecting to some external mechanisms for time, messages, and threading/callbacks.
This is the “imperative shell” part of the software, and no longer unit-testable.
Structs
This loop driver spawns a new thread which updates the state in a loop,
in response to incoming events.
It sends outcomes to the glib main loop using a channel.
The outcomes are applied by the UI end of the channel in the main
module.
by creating a glib::Sender and checking what messages it receives.
Type Definitions
UISender 🔒