pub enum ErrorKind {
Show 20 variants
NotFound,
InitializationFailed,
BadAccess,
OutOfMemory,
BadAttribute,
BadContext,
BadContextState,
BadConfig,
BadCurrentSurface,
BadDisplay,
BadSurface,
BadPbuffer,
BadPixmap,
BadMatch,
BadParameter,
BadNativePixmap,
BadNativeWindow,
ContextLost,
NotSupported(&'static str),
Misc,
}
Expand description
A list specifying general categoires of native platform graphics interface errors.
Variants§
NotFound
The requested display wasn’t found or some required symbol in it was missing.
InitializationFailed
Failed to perform resource initialization.
BadAccess
Can’t access a requested resource.
For example when trying to make a context current while it’s current on another thread.
OutOfMemory
An operation could not be completed, because it failed to allocate enough memory.
BadAttribute
An recognized attribute value was passed.
BadContext
The context is no longer valid.
BadContextState
The context is in bad state.
BadConfig
Invalid config was passed.
BadCurrentSurface
The current surface of the calling thread is no longer valid.
BadDisplay
The display is no longer valid.
BadSurface
The surface is invalid.
BadPbuffer
The pbuffer is invalid.
BadPixmap
The pixmap is invalid.
BadMatch
Arguments are inconsistent. For example when shared contexts are not compatible.
BadParameter
One or more argument values are invalid.
BadNativePixmap
Bad native pixmap was provided.
BadNativeWindow
Bad native window was provided.
ContextLost
The context was lost.
NotSupported(&'static str)
The operation is not supported by the platform.
Misc
The misc error that can’t be classified occurred.