#[non_exhaustive]
pub enum SystemError {
SystemErrorUnsupported,
SystemErrorNoMemory,
}
Expand description
Error enumeration for
The SystemError::SystemErrorUnsupported
error can be thrown for a
variety of reasons. For example:
You’ve tried to use a feature that is not
advertised by has_feature
. This could happen if you create
a 2d texture with a non-power-of-two size when
FeatureID::OglFeatureIdTextureNpot
is not advertised.
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
The driver does not support some
configuration.
</listiem>
Currently this is only used by API marked as experimental so this enum should also be considered experimental.
Variants (Non-exhaustive)
This enum is marked as non-exhaustive
SystemErrorUnsupported
You tried to use a feature or configuration not currently available.
SystemErrorNoMemory
You tried to allocate a resource such as a texture and there wasn’t enough memory.
Trait Implementations
sourceimpl Clone for SystemError
impl Clone for SystemError
sourcefn clone(&self) -> SystemError
fn clone(&self) -> SystemError
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for SystemError
impl Debug for SystemError
sourceimpl Display for SystemError
impl Display for SystemError
sourceimpl Hash for SystemError
impl Hash for SystemError
sourceimpl Ord for SystemError
impl Ord for SystemError
sourceimpl PartialEq<SystemError> for SystemError
impl PartialEq<SystemError> for SystemError
sourceimpl PartialOrd<SystemError> for SystemError
impl PartialOrd<SystemError> for SystemError
sourcefn partial_cmp(&self, other: &SystemError) -> Option<Ordering>
fn partial_cmp(&self, other: &SystemError) -> Option<Ordering>
This method returns an ordering between self
and other
values if one exists. Read more
1.0.0 · sourcefn lt(&self, other: &Rhs) -> bool
fn lt(&self, other: &Rhs) -> bool
This method tests less than (for self
and other
) and is used by the <
operator. Read more
1.0.0 · sourcefn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
impl Copy for SystemError
impl Eq for SystemError
impl StructuralEq for SystemError
impl StructuralPartialEq for SystemError
Auto Trait Implementations
impl RefUnwindSafe for SystemError
impl Send for SystemError
impl Sync for SystemError
impl Unpin for SystemError
impl UnwindSafe for SystemError
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
impl<T> Clamp<T> for T where
T: PartialOrd<T>,
impl<T> Clamp<T> for T where
T: PartialOrd<T>,
fn clamped(self, min: T, max: T) -> T
sourceimpl<Fr, To> IntoColor<To> for Fr where
To: FromColor<Fr>,
impl<Fr, To> IntoColor<To> for Fr where
To: FromColor<Fr>,
sourcefn into_color(self) -> To
fn into_color(self) -> To
Convert into color
impl<T> Pointable for T
impl<T> Pointable for T
impl<T> SetParameter for T
impl<T> SetParameter for T
fn set<T>(&mut self, value: T) -> <T as Parameter<Self>>::Result where
T: Parameter<Self>,
fn set<T>(&mut self, value: T) -> <T as Parameter<Self>>::Result where
T: Parameter<Self>,
Sets value
as a parameter of self
.