Trait tao::platform::unix::EventLoopBuilderExtUnix

source ·
pub trait EventLoopBuilderExtUnix {
    // Required method
    fn with_any_thread(&mut self, any_thread: bool) -> &mut Self;
}
Expand description

Additional methods on EventLoop that are specific to Unix.

Required Methods§

source

fn with_any_thread(&mut self, any_thread: bool) -> &mut Self

Whether to allow the event loop to be created off of the main thread.

By default, the window is only allowed to be created on the main thread, to make platform compatibility easier.

§Window caveats

Note that any Window created on the new thread will be destroyed when the thread terminates. Attempting to use a Window after its parent thread terminates has unspecified, although explicitly not undefined, behavior.

Object Safety§

This trait is not object safe.

Implementors§