Enum cogl::SystemError[][src]

#[non_exhaustive]
pub enum SystemError {
    CoglSystemErrorUnsupported,
    CoglSystemErrorNoMemory,
    // some variants omitted
}

Error enumeration for Cogl

The SystemError::CoglSystemErrorUnsupported error can be thrown for a variety of reasons. For example:

<itemizedlist> <listitem>``<para>You’ve tried to use a feature that is not advertised by cogl_has_feature. This could happen if you create a 2d texture with a non-power-of-two size when FeatureID::OglFeatureIdTextureNpot is not advertised.</para>``</listitem> <listitem>``<para>The GPU can not handle the configuration you have requested. An example might be if you try to use too many texture layers in a single Pipeline``</para>``</listitem> <listitem>``<para>The driver does not support some configuration.</para>``</listiem> </itemizedlist>

Currently this is only used by Cogl API marked as experimental so this enum should also be considered experimental.

Variants (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.
CoglSystemErrorUnsupported

You tried to use a feature or configuration not currently available.

CoglSystemErrorNoMemory

You tried to allocate a resource such as a texture and there wasn’t enough memory.

Trait Implementations

impl Clone for SystemError[src]

impl Copy for SystemError[src]

impl Debug for SystemError[src]

impl Display for SystemError[src]

impl Eq for SystemError[src]

impl<'a> FromValue<'a> for SystemError[src]

impl<'a> FromValueOptional<'a> for SystemError[src]

impl Hash for SystemError[src]

impl Ord for SystemError[src]

impl PartialEq<SystemError> for SystemError[src]

impl PartialOrd<SystemError> for SystemError[src]

impl SetValue for SystemError[src]

impl StaticType for SystemError[src]

impl StructuralEq for SystemError[src]

impl StructuralPartialEq for SystemError[src]

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> 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> ToSendValue for T where
    T: SetValue + Send + ToValue + ?Sized
[src]

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

impl<T> ToValue for T where
    T: SetValue + ?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.