Use EventQueue from the wayland-client with the calloop.
EventQueue
wayland-client
calloop
The wayland-rs event source for the calloop