#[non_exhaustive]pub enum GLES2ContextError {
Unsupported,
Driver,
}
Expand description
Error codes that relate to the cogl_gles2_context api.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Unsupported
Creating GLES2 contexts
isn’t supported. Applications should use cogl_has_feature
to
check for the FeatureID::OglFeatureIdGles2Context
.
Driver
An underlying driver error occured.
Trait Implementations§
Source§impl Clone for GLES2ContextError
impl Clone for GLES2ContextError
Source§fn clone(&self) -> GLES2ContextError
fn clone(&self) -> GLES2ContextError
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for GLES2ContextError
impl Debug for GLES2ContextError
Source§impl Display for GLES2ContextError
impl Display for GLES2ContextError
Source§impl Hash for GLES2ContextError
impl Hash for GLES2ContextError
Source§impl Ord for GLES2ContextError
impl Ord for GLES2ContextError
Source§fn cmp(&self, other: &GLES2ContextError) -> Ordering
fn cmp(&self, other: &GLES2ContextError) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for GLES2ContextError
impl PartialEq for GLES2ContextError
Source§impl PartialOrd for GLES2ContextError
impl PartialOrd for GLES2ContextError
impl Copy for GLES2ContextError
impl Eq for GLES2ContextError
impl StructuralPartialEq for GLES2ContextError
Auto Trait Implementations§
impl Freeze for GLES2ContextError
impl RefUnwindSafe for GLES2ContextError
impl Send for GLES2ContextError
impl Sync for GLES2ContextError
impl Unpin for GLES2ContextError
impl UnwindSafe for GLES2ContextError
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
Mutably borrows from an owned value. Read more