pub struct EventLoopBuilder { /* private fields */ }
Expand description

Builder for EventLoop.

Implementations

Returns the list of all the monitors available on the system.

Provides a closure which configures the DriverConfig instance.

A request to the driver to use a certain number of swapchain images.

More images introduces more display lag, but smoother animation.

Set to true to enable vsync in exclusive fullscreen video modes.

Sets up fullscreen mode using a conveience function. There are additional options offered by winit which can be accessed using the with function.

Enables Vulkan graphics debugging layers.

NOTE: Any valdation warnings or errors will cause the current thread to park itself after describing the error using the log crate. This makes it easy to attach a debugger and see what is causing the issue directly.

Returns the primary monitor of the system.

Returns None if it can’t identify any monitor as a primary one.

Platform-specific

Wayland: Always returns None.

Pass true to this method to enable hardware ray tracing, if supported.

Allows for specification of a custom pool implementation.

This pool will hold leases for Vulkan objects needed by Display.

Allows deeper customization of the window, if needed.

Sets up “windowed” mode, which is the opposite of fullscreen.

Builds a new EventLoop.

Trait Implementations

Formats the value using the given formatter. Read more
Returns the “default value” for a type. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.