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 duplicate of the value. Read more
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const 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 for RenderInitError
impl PartialEq for RenderInitError
impl StructuralPartialEq for RenderInitError
Auto Trait Implementations§
impl Freeze for RenderInitError
impl RefUnwindSafe for RenderInitError
impl Send for RenderInitError
impl Sync for RenderInitError
impl Unpin for RenderInitError
impl UnwindSafe for RenderInitError
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more