Enum speedy2d::window::WindowCreationError
source · pub enum WindowCreationError {
PrimaryMonitorNotFound,
SuitableContextNotFound,
MakeContextCurrentFailed,
RendererCreationFailed,
}
Expand description
Error occurring when creating a window.
Variants§
PrimaryMonitorNotFound
Could not find the primary monitor.
SuitableContextNotFound
Could not find a suitable graphics context. Speedy2D attempts to find the best possible context configuration by trying multiple options for vsync and multisampling.
MakeContextCurrentFailed
Failed to make the graphics context current.
RendererCreationFailed
Failed to instantiate the renderer.
Trait Implementations§
source§impl Clone for WindowCreationError
impl Clone for WindowCreationError
source§fn clone(&self) -> WindowCreationError
fn clone(&self) -> WindowCreationError
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for WindowCreationError
impl Debug for WindowCreationError
source§impl Display for WindowCreationError
impl Display for WindowCreationError
source§impl Hash for WindowCreationError
impl Hash for WindowCreationError
source§impl PartialEq<WindowCreationError> for WindowCreationError
impl PartialEq<WindowCreationError> for WindowCreationError
source§fn eq(&self, other: &WindowCreationError) -> bool
fn eq(&self, other: &WindowCreationError) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.