pub enum Error {
NotInitialized,
NoCurrentContext,
InvalidEnum,
InvalidValue,
OutOfMemory,
ApiUnavailable,
VersionUnavailable,
PlatformError,
FormatUnavailable,
NoWindowContext,
Unknown(c_int),
}Expand description
An error that may be returned from a GLFW operation.
These correspond 1:1 with
Variants§
NotInitialized
An error returned when GLFW has not been initialized.
NoCurrentContext
An error returned when the current context is incorrect.
InvalidEnum
An error returned when an enumerated value is out of the range of valid inputs.
InvalidValue
An error returned when a value is outsode fh te range of valid inputs.
OutOfMemory
An error returned if GLFW runs out of memory.
An error returned if an API has been disabled or is unavailable
An error returned if an API is available, but a specific version is unavailable (such as the OpenGL version)
PlatformError
A generic platform-specific error has occurred.
A specific format is unavailable.
NoWindowContext
An error that occurs when no window context is available.
Unknown(c_int)
An error outside of this enumeration has occurred. If this shows up, it means GLFW either didn’t document an error-code, or it has added a new error code in an update.