Enum khronos_egl::egl1_0::Error
source · 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§
source§impl Error for Error
impl Error for Error
source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
1.0.0 · source§fn description(&self) -> &str
fn description(&self) -> &str
impl Copy for Error
impl Eq for Error
impl StructuralPartialEq for Error
Auto Trait Implementations§
impl Freeze for Error
impl RefUnwindSafe for Error
impl Send for Error
impl Sync for Error
impl Unpin for Error
impl UnwindSafe for Error
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)