Enum khronos_egl::Error[][src]

pub enum Error {
Show 14 variants NotInitialized, BadAccess, BadAlloc, BadAttribute, BadContext, BadConfig, BadCurrentSurface, BadDisplay, BadSurface, BadMatch, BadParameter, BadNativePixmap, BadNativeWindow, ContextLost,
}
Expand description

EGL errors.

Variants

NotInitialized

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

BadAccess

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

BadAlloc

EGL failed to allocate resources for the requested operation.

BadAttribute

An unrecognized attribute or attribute value was passed in the attribute list.

BadContext

An Context argument does not name a valid EGL rendering context.

BadConfig

An Config argument does not name a valid EGL frame buffer configuration.

BadCurrentSurface

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

BadDisplay

An Display argument does not name a valid EGL display connection.

BadSurface

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

BadMatch

Arguments are inconsistent (for example, a valid context requires buffers not supplied by a valid surface).

BadParameter

One or more argument values are invalid.

BadNativePixmap

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

BadNativeWindow

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

ContextLost

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

Implementations

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Formats the value using the given formatter. Read more

The lower-level source of this error, if any. Read more

🔬 This is a nightly-only experimental API. (backtrace)

Returns a stack backtrace, if available, of where this error occurred. Read more

👎 Deprecated since 1.42.0:

use the Display impl or to_string()

👎 Deprecated since 1.33.0:

replaced by Error::source, which can support downcasting

Performs the conversion.

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

The type returned in the event of a conversion error.

Performs the conversion.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The resulting type after obtaining ownership.

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

🔬 This is a nightly-only experimental API. (toowned_clone_into)

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

Converts the given value to a String. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.