[][src]Enum khronos_egl::Error

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

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

impl Error[src]

pub fn native(&self) -> Int[src]

Trait Implementations

impl Clone for Error[src]

impl Copy for Error[src]

impl Debug for Error[src]

impl Display for Error[src]

impl Eq for Error[src]

impl Error for Error[src]

impl From<Error> for Int[src]

impl PartialEq<Error> for Error[src]

impl StructuralEq for Error[src]

impl StructuralPartialEq for Error[src]

impl TryFrom<i32> for Error[src]

type Error = Int

The type returned in the event of a conversion error.

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Downcast<T> for T[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

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

The type returned in the event of a conversion error.

impl<T> Upcast<T> for T[src]