pub enum LuxError {
WindowError(String),
OpenGlError(String),
ImageError(ImageError),
ShaderError(ShaderError),
IoError(Error),
FontNotLoaded(String),
DrawError(DrawError),
TextureCreationError(TextureCreationError),
IndexBufferCreationError,
VertexBufferCreationError,
}
Expand description
Any error that Lux might run into.
Variants§
WindowError(String)
An error that can occur when creating a window.
OpenGlError(String)
An error that can occur when creating an opengl context.
ImageError(ImageError)
An error related to image decoding.
ShaderError(ShaderError)
An error that can occur when compiling or linking shaders.
IoError(Error)
An error that can occur when required I/O fails.
FontNotLoaded(String)
An error that can occur when attempting to use a font that hasn’t been loaded yet.
DrawError(DrawError)
An error that was produced while submitting a draw call
TextureCreationError(TextureCreationError)
An error occured while creating a texture
IndexBufferCreationError
An error creating an index buffer occured
VertexBufferCreationError
An error creating an vertex buffer occured
Trait Implementations§
Source§impl Error for LuxError
impl Error for LuxError
Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
Source§impl From<CreationError> for LuxError
impl From<CreationError> for LuxError
Source§fn from(_: BufferCreationError) -> LuxError
fn from(_: BufferCreationError) -> LuxError
Converts to this type from the input type.
Source§impl From<CreationError> for LuxError
impl From<CreationError> for LuxError
Source§fn from(_: BufferCreationError) -> LuxError
fn from(_: BufferCreationError) -> LuxError
Converts to this type from the input type.
Source§impl From<GliumCreationError<CreationError>> for LuxError
impl From<GliumCreationError<CreationError>> for LuxError
Source§fn from(e: GliumCreationError<CreationError>) -> LuxError
fn from(e: GliumCreationError<CreationError>) -> LuxError
Converts to this type from the input type.
Source§impl From<ImageError> for LuxError
impl From<ImageError> for LuxError
Source§fn from(e: ImageError) -> LuxError
fn from(e: ImageError) -> LuxError
Converts to this type from the input type.
Source§impl From<ProgramChooserCreationError> for LuxError
impl From<ProgramChooserCreationError> for LuxError
Source§fn from(e: ProgramChooserCreationError) -> LuxError
fn from(e: ProgramChooserCreationError) -> LuxError
Converts to this type from the input type.
Source§impl From<ProgramCreationError> for LuxError
impl From<ProgramCreationError> for LuxError
Source§fn from(e: ProgramCreationError) -> LuxError
fn from(e: ProgramCreationError) -> LuxError
Converts to this type from the input type.
Source§impl From<TextureCreationError> for LuxError
impl From<TextureCreationError> for LuxError
Source§fn from(e: TextureCreationError) -> LuxError
fn from(e: TextureCreationError) -> LuxError
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for LuxError
impl !RefUnwindSafe for LuxError
impl Send for LuxError
impl Sync for LuxError
impl Unpin for LuxError
impl !UnwindSafe for LuxError
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