Enum glium::GliumCreationError
source · pub enum GliumCreationError<T> {
BackendCreationError(T),
IncompatibleOpenGl(String),
}
Expand description
Error that can happen while creating a glium display.
Variants§
BackendCreationError(T)
An error has happened while creating the backend.
IncompatibleOpenGl(String)
The OpenGL implementation is too old.
Trait Implementations§
source§impl<T: Clone> Clone for GliumCreationError<T>
impl<T: Clone> Clone for GliumCreationError<T>
source§fn clone(&self) -> GliumCreationError<T>
fn clone(&self) -> GliumCreationError<T>
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<T: Debug> Debug for GliumCreationError<T>
impl<T: Debug> Debug for GliumCreationError<T>
source§impl<T: Error> Display for GliumCreationError<T>
impl<T: Error> Display for GliumCreationError<T>
source§impl<T: Error> Error for GliumCreationError<T>
impl<T: Error> Error for GliumCreationError<T>
source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
source§fn cause(&self) -> Option<&dyn Error>
fn cause(&self) -> Option<&dyn Error>
👎Deprecated since 1.33.0: replaced by Error::source, which can support downcasting
source§impl<T: Error> From<T> for GliumCreationError<T>
impl<T: Error> From<T> for GliumCreationError<T>
source§fn from(err: T) -> GliumCreationError<T>
fn from(err: T) -> GliumCreationError<T>
Converts to this type from the input type.
source§impl<T: PartialEq> PartialEq<GliumCreationError<T>> for GliumCreationError<T>
impl<T: PartialEq> PartialEq<GliumCreationError<T>> for GliumCreationError<T>
source§fn eq(&self, other: &GliumCreationError<T>) -> bool
fn eq(&self, other: &GliumCreationError<T>) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl<T: Eq> Eq for GliumCreationError<T>
impl<T> StructuralEq for GliumCreationError<T>
impl<T> StructuralPartialEq for GliumCreationError<T>
Auto Trait Implementations§
impl<T> RefUnwindSafe for GliumCreationError<T>where T: RefUnwindSafe,
impl<T> Send for GliumCreationError<T>where T: Send,
impl<T> Sync for GliumCreationError<T>where T: Sync,
impl<T> Unpin for GliumCreationError<T>where T: Unpin,
impl<T> UnwindSafe for GliumCreationError<T>where T: UnwindSafe,
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