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

Builder for EventLoop.

Implementations

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

Specifies the number of in-flight command buffers, which should be greater than or equal to the desired swapchain image count.

More command buffers mean less time waiting for previously submitted frames to complete, but more memory in use.

Generally a value of one or two greater than desired image count produces the smoothest animation.

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. In addition, decorations are set to false and maximized is set to true.

Note

There are additional options offered by winit which can be accessed using the window 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.

Note

There are additional options offered by winit which can be accessed using the window function.

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.