[−][src]Enum surfman::error::WindowingApiError
Abstraction of the errors that EGL, CGL, GLX, CGL, etc. return.
They all tend to follow similar patterns.
Variants
Miscellaneous error.
CGL: Invalid pixel format attribute. EGL: An unrecognized attribute or attribute value was passed in the attribute list. X11: Attribute to get is bad.
CGL: Invalid renderer property.
CGL: Invalid pixel format object. X11: Invalid framebuffer configuration, including an unsupported OpenGL version.
CGL: Invalid renderer information object.
CGL: Invalid context object. EGL: An EGLContext argument does not name a valid EGL rendering context. X11: The context is invalid.
Invalid drawable.
CGL: Invalid display. EGL: An EGLDisplay argument does not name a valid EGL display connection.
CGL: Invalid context state.
CGL: Invalid numerical value. X11: Invalid value. GL: Given when a value parameter is not a legal value for that function.
CGL: Invalid share context. EGL: Arguments are inconsistent (for example, a valid context requires buffers not supplied by a valid surface).
CGL: Invalid enumerant (constant). X11: Invalid enum value. GL: Given when an enumeration parameter is not a legal enumeration for that function.
CGL: Invalid off-screen drawable.
CGL: Invalid full-screen drawable.
CGL: Invalid window.
CGL: Invalid address; e.g. null pointer passed to function requiring a non-null pointer argument.
CGL: Invalid code module.
CGL: Invalid memory allocation; i.e. CGL couldn't allocate memory. EGL: EGL failed to allocate resources for the requested operation.
CGL: Invalid Core Graphics connection.
EGL: EGL is not initialized, or could not be initialized, for the specified EGL display connection.
EGL: EGL cannot access a requested resource (for example a context is bound in another thread).
EGL: The current surface of the calling thread is a window, pixel buffer or pixmap that is no longer valid.
EGL: An EGLSurface argument does not name a valid surface (window, pixel buffer or pixmap) configured for GL rendering.
EGL: One or more argument values are invalid.
EGL: A NativePixmapType argument does not refer to a valid native pixmap.
EGL: A NativeWindowType argument does not refer to a valid native window.
EGL: A power management event has occurred. The application must destroy all contexts and reinitialise OpenGL ES state and objects to continue rendering.
X11: Screen number is bad.
X11: The GLX extension is unavailable on the server.
X11: Visual number not known by GLX.
GL: Given when the set of state for a command is not legal for the parameters given to that command.
EGL: The EGL configuration is unsupported.
Trait Implementations
impl Clone for WindowingApiError
[src]
fn clone(&self) -> WindowingApiError
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Copy for WindowingApiError
[src]
impl Debug for WindowingApiError
[src]
Auto Trait Implementations
impl RefUnwindSafe for WindowingApiError
impl Send for WindowingApiError
impl Sync for WindowingApiError
impl Unpin for WindowingApiError
impl UnwindSafe for WindowingApiError
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,