pub struct EventLoopBuilder { /* private fields */ }

Implementations

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

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.

Allows deeper customization of the window, if needed.

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

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.