#[repr(i32)]
pub enum Error {
NoError,
NotInitialized,
NoCurrentContext,
InvalidEnum,
InvalidValue,
OutOfMemory,
ApiUnavailable,
VersionUnavailable,
PlatformError,
FormatUnavailable,
NoWindowContext,
}
Expand description
Tokens corresponding to various error types.
Variants§
NoError
NotInitialized
NoCurrentContext
InvalidEnum
InvalidValue
OutOfMemory
PlatformError
NoWindowContext
Trait Implementations§
source§impl Error for Error
impl Error for Error
1.30.0 · source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
The lower-level source of this error, if any. Read more
1.0.0 · source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
source§impl Ord for Error
impl Ord for Error
source§impl PartialEq<Error> for Error
impl PartialEq<Error> for Error
source§impl PartialOrd<Error> for Error
impl PartialOrd<Error> for Error
1.0.0 · source§fn 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