Enum surfman::error::WindowingApiError

source ·
pub enum WindowingApiError {
Show 32 variants Failed, BadAttribute, BadProperty, BadPixelFormat, BadRendererInfo, BadContext, BadDrawable, BadDisplay, BadState, BadValue, BadMatch, BadEnumeration, BadOffScreen, BadFullScreen, BadWindow, BadAddress, BadCodeModule, BadAlloc, BadConnection, NotInitialized, BadAccess, BadCurrentSurface, BadSurface, BadParameter, BadNativePixmap, BadNativeWindow, ContextLost, BadScreen, NoExtension, BadVisual, BadOperation, BadConfig,
}
Expand description

Abstraction of the errors that EGL, CGL, GLX, CGL, etc. return.

They all tend to follow similar patterns.

Variants§

§

Failed

Miscellaneous error.

§

BadAttribute

CGL: Invalid pixel format attribute. EGL: An unrecognized attribute or attribute value was passed in the attribute list. X11: Attribute to get is bad.

§

BadProperty

CGL: Invalid renderer property.

§

BadPixelFormat

CGL: Invalid pixel format object. X11: Invalid framebuffer configuration, including an unsupported OpenGL version.

§

BadRendererInfo

CGL: Invalid renderer information object.

§

BadContext

CGL: Invalid context object. EGL: An EGLContext argument does not name a valid EGL rendering context. X11: The context is invalid.

§

BadDrawable

Invalid drawable.

§

BadDisplay

CGL: Invalid display. EGL: An EGLDisplay argument does not name a valid EGL display connection.

§

BadState

CGL: Invalid context state.

§

BadValue

CGL: Invalid numerical value. X11: Invalid value. GL: Given when a value parameter is not a legal value for that function.

§

BadMatch

CGL: Invalid share context. EGL: Arguments are inconsistent (for example, a valid context requires buffers not supplied by a valid surface).

§

BadEnumeration

CGL: Invalid enumerant (constant). X11: Invalid enum value. GL: Given when an enumeration parameter is not a legal enumeration for that function.

§

BadOffScreen

CGL: Invalid off-screen drawable.

§

BadFullScreen

CGL: Invalid full-screen drawable.

§

BadWindow

CGL: Invalid window.

§

BadAddress

CGL: Invalid address; e.g. null pointer passed to function requiring a non-null pointer argument.

§

BadCodeModule

CGL: Invalid code module.

§

BadAlloc

CGL: Invalid memory allocation; i.e. CGL couldn’t allocate memory. EGL: EGL failed to allocate resources for the requested operation.

§

BadConnection

CGL: Invalid Core Graphics connection.

§

NotInitialized

EGL: EGL is not initialized, or could not be initialized, for the specified EGL display connection.

§

BadAccess

EGL: EGL cannot access a requested resource (for example a context is bound in another thread).

§

BadCurrentSurface

EGL: The current surface of the calling thread is a window, pixel buffer or pixmap that is no longer valid.

§

BadSurface

EGL: An EGLSurface argument does not name a valid surface (window, pixel buffer or pixmap) configured for GL rendering.

§

BadParameter

EGL: One or more argument values are invalid.

§

BadNativePixmap

EGL: A NativePixmapType argument does not refer to a valid native pixmap.

§

BadNativeWindow

EGL: A NativeWindowType argument does not refer to a valid native window.

§

ContextLost

EGL: A power management event has occurred. The application must destroy all contexts and reinitialise OpenGL ES state and objects to continue rendering.

§

BadScreen

X11: Screen number is bad.

§

NoExtension

X11: The GLX extension is unavailable on the server.

§

BadVisual

X11: Visual number not known by GLX.

§

BadOperation

GL: Given when the set of state for a command is not legal for the parameters given to that command.

§

BadConfig

EGL: The EGL configuration is unsupported.

Trait Implementations§

source§

impl Clone for WindowingApiError

source§

fn clone(&self) -> WindowingApiError

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for WindowingApiError

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Copy for WindowingApiError

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T> ToOwned for T
where T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.