pub trait EventLoopBuilderExtUnix {
// Required methods
fn with_any_thread(&mut self, any_thread: bool) -> &mut Self;
fn with_app_id<S: Into<String>>(&mut self, id: S) -> &mut Self;
}
Expand description
Additional methods on EventLoop
that are specific to Unix.
Required Methods§
Sourcefn with_any_thread(&mut self, any_thread: bool) -> &mut Self
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.
Sourcefn with_app_id<S: Into<String>>(&mut self, id: S) -> &mut Self
fn with_app_id<S: Into<String>>(&mut self, id: S) -> &mut Self
Set the gtk application id.
If no application ID is given then some features (most notably application uniqueness) will be disabled.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.