pub struct EventLoopBuilder { /* private fields */ }
Expand description
Implementations§
Source§impl EventLoopBuilder
impl EventLoopBuilder
Sourcepub fn new() -> Self
pub fn new() -> Self
Create a new EventLoopBuilder
.
Sourcepub fn build<TS: ThreadSafety>(&mut self) -> EventLoop<TS>
pub fn build<TS: ThreadSafety>(&mut self) -> EventLoop<TS>
Builds a new event loop.
In general, this function must be called on the same thread that main()
is being run inside of.
This can be circumvented in some cases using platform specific options. See the platform
module for more information. Attempting to violate this property or create more than one event
loop per application will result in a panic.
This function results in platform-specific backend initialization.
Trait Implementations§
Source§impl Debug for EventLoopBuilder
impl Debug for EventLoopBuilder
Source§impl Default for EventLoopBuilder
impl Default for EventLoopBuilder
Source§impl EventLoopBuilderExtWayland for EventLoopBuilder
impl EventLoopBuilderExtWayland for EventLoopBuilder
Source§fn with_wayland(&mut self) -> &mut Self
fn with_wayland(&mut self) -> &mut Self
Force using Wayland.
Source§fn 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. Read more
Auto Trait Implementations§
impl Freeze for EventLoopBuilder
impl RefUnwindSafe for EventLoopBuilder
impl Send for EventLoopBuilder
impl Sync for EventLoopBuilder
impl Unpin for EventLoopBuilder
impl UnwindSafe for EventLoopBuilder
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more