#[non_exhaustive]pub enum SystemError {
CoglSystemErrorUnsupported,
CoglSystemErrorNoMemory,
}
Expand description
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)§
This enum is marked as non-exhaustive
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§
Source§impl Clone for SystemError
impl Clone for SystemError
Source§fn clone(&self) -> SystemError
fn clone(&self) -> SystemError
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for SystemError
impl Debug for SystemError
Source§impl Display for SystemError
impl Display for SystemError
Source§impl<'a> FromValue<'a> for SystemError
impl<'a> FromValue<'a> for SystemError
Source§unsafe fn from_value(value: &Value) -> Self
unsafe fn from_value(value: &Value) -> Self
Source§impl<'a> FromValueOptional<'a> for SystemError
impl<'a> FromValueOptional<'a> for SystemError
Source§impl Hash for SystemError
impl Hash for SystemError
Source§impl Ord for SystemError
impl Ord for SystemError
Source§fn cmp(&self, other: &SystemError) -> Ordering
fn cmp(&self, other: &SystemError) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Source§impl PartialEq for SystemError
impl PartialEq for SystemError
Source§impl PartialOrd for SystemError
impl PartialOrd for SystemError
Source§impl SetValue for SystemError
impl SetValue for SystemError
Source§impl StaticType for SystemError
impl StaticType for SystemError
Source§fn static_type() -> Type
fn static_type() -> Type
Self
.impl Copy for SystemError
impl Eq for SystemError
impl StructuralPartialEq for SystemError
Auto Trait Implementations§
impl Freeze for SystemError
impl RefUnwindSafe for SystemError
impl Send for SystemError
impl Sync for SystemError
impl Unpin for SystemError
impl UnwindSafe for SystemError
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§impl<T> ToSendValue for T
impl<T> ToSendValue for T
Source§fn to_send_value(&self) -> SendValue
fn to_send_value(&self) -> SendValue
SendValue
clone of self
.