Enum thyme::GliumError
source · pub enum GliumError {
DisplayCreation(DisplayCreationError),
Draw(DrawError),
Index(BufferCreationError),
Font(String),
InvalidTexture(TextureHandle),
InvalidFont(FontHandle),
Program(ProgramCreationError),
Vertex(BufferCreationError),
}
Expand description
An Error originating from the GliumRenderer
Variants§
DisplayCreation(DisplayCreationError)
Glium was unable to create the display
Draw(DrawError)
An error occurred drawing to the screen or render target
Index(BufferCreationError)
An error occurred creating a Glium index buffer
Font(String)
An error occurred with the Font
InvalidTexture(TextureHandle)
A texture handle was invalid
InvalidFont(FontHandle)
A font handle was invalid
Program(ProgramCreationError)
The shader program failed to compile
Vertex(BufferCreationError)
An error occurred creating a Glium vertex buffer
Trait Implementations§
source§impl Debug for GliumError
impl Debug for GliumError
source§impl Display for GliumError
impl Display for GliumError
source§impl Error for GliumError
impl Error for GliumError
source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
The lower-level source of this error, if any. Read more
1.0.0 · source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
source§impl From<CreationError> for GliumError
impl From<CreationError> for GliumError
source§fn from(e: BufferCreationError) -> GliumError
fn from(e: BufferCreationError) -> GliumError
Converts to this type from the input type.
source§impl From<CreationError> for GliumError
impl From<CreationError> for GliumError
source§fn from(e: BufferCreationError) -> GliumError
fn from(e: BufferCreationError) -> GliumError
Converts to this type from the input type.
source§impl From<DrawError> for GliumError
impl From<DrawError> for GliumError
source§fn from(e: DrawError) -> GliumError
fn from(e: DrawError) -> GliumError
Converts to this type from the input type.
source§impl From<ProgramCreationError> for GliumError
impl From<ProgramCreationError> for GliumError
source§fn from(e: ProgramCreationError) -> GliumError
fn from(e: ProgramCreationError) -> GliumError
Converts to this type from the input type.
Auto Trait Implementations§
impl !RefUnwindSafe for GliumError
impl Send for GliumError
impl Sync for GliumError
impl Unpin for GliumError
impl !UnwindSafe for GliumError
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