pub trait EventLoopExtUnix {
    // Required method
    fn new_any_thread() -> Self
       where Self: Sized;
}
Expand description

Additional methods on EventLoop that are specific to Unix.

Required Methods§

source

fn new_any_thread() -> Selfwhere Self: Sized,

Builds a new EventLoop on any thread.

This method bypasses the cross-platform compatibility requirement that EventLoop be created on the main thread.

Implementors§