pub enum RenderInitError {
ApiNotAvailable,
CannotOpenGraphicsDevice,
CannotCreateGraphicsDevice,
CannotStartGraphicsDriver,
DisplayNotAvailable,
MissingRequiredExtension,
CouldNotConfigureDisplay,
CouldNotCreateContext,
CouldNotCreateSurface,
ContextDidNotStart,
}
Expand description
Errors that can happen when trying to initialise the renderer
Variants§
ApiNotAvailable
The required rendering API is not available
CannotOpenGraphicsDevice
Indicates that the graphics device could not be opened
CannotCreateGraphicsDevice
Indicates that the graphics device could not be attached to
CannotStartGraphicsDriver
The graphics driver failed to initialise
DisplayNotAvailable
The graphics display is not available
MissingRequiredExtension
A required extension was missing
CouldNotConfigureDisplay
Unable to configure the display
CouldNotCreateContext
The context failed to create
CouldNotCreateSurface
The render surface failed to create
ContextDidNotStart
Could not set the active context
Trait Implementations§
source§impl Clone for RenderInitError
impl Clone for RenderInitError
source§fn clone(&self) -> RenderInitError
fn clone(&self) -> RenderInitError
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 RenderInitError
impl Debug for RenderInitError
source§impl PartialEq<RenderInitError> for RenderInitError
impl PartialEq<RenderInitError> for RenderInitError
source§fn eq(&self, other: &RenderInitError) -> bool
fn eq(&self, other: &RenderInitError) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.