Enum luminance_glfw::GlfwSurfaceError
source · [−]#[non_exhaustive]
pub enum GlfwSurfaceError<E> {
InitError(InitError),
UserError(E),
GraphicsStateError(StateQueryError),
}
Expand description
Error that can be risen while creating a surface.
Variants (Non-exhaustive)
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
InitError(InitError)
Initialization of the surface went wrong.
This variant exposes a glfw error for further information about what went wrong.
UserError(E)
User error.
GraphicsStateError(StateQueryError)
The graphics state is not available.
This error is generated when the initialization code is called on a thread on which the graphics state has already been acquired.
Trait Implementations
sourceimpl<E: Debug> Debug for GlfwSurfaceError<E>
impl<E: Debug> Debug for GlfwSurfaceError<E>
sourceimpl<E> Display for GlfwSurfaceError<E> where
E: Display,
impl<E> Display for GlfwSurfaceError<E> where
E: Display,
sourceimpl<E> Error for GlfwSurfaceError<E> where
E: 'static + Error,
impl<E> Error for GlfwSurfaceError<E> where
E: 'static + Error,
sourcefn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
The lower-level source of this error, if any. Read more
sourcefn backtrace(&self) -> Option<&Backtrace>
fn backtrace(&self) -> Option<&Backtrace>
🔬 This is a nightly-only experimental API. (
backtrace
)Returns a stack backtrace, if available, of where this error occurred. Read more
1.0.0 · sourcefn description(&self) -> &str
fn description(&self) -> &str
👎 Deprecated since 1.42.0:
use the Display impl or to_string()
Auto Trait Implementations
impl<E> RefUnwindSafe for GlfwSurfaceError<E> where
E: RefUnwindSafe,
impl<E> Send for GlfwSurfaceError<E> where
E: Send,
impl<E> Sync for GlfwSurfaceError<E> where
E: Sync,
impl<E> Unpin for GlfwSurfaceError<E> where
E: Unpin,
impl<E> UnwindSafe for GlfwSurfaceError<E> where
E: UnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more