Enum surfman::error::Error [−][src]
pub enum Error {}Show variants
Failed, UnsupportedOnThisPlatform, Unimplemented, UnsupportedGLType, UnsupportedGLProfile, UnsupportedGLVersion, PixelFormatSelectionFailed(WindowingApiError), NoPixelFormatFound, ContextCreationFailed(WindowingApiError), ContextDestructionFailed(WindowingApiError), MakeCurrentFailed(WindowingApiError), NoGLLibraryFound, RequiredExtensionUnavailable, GLFunctionNotFound, ExternalRenderTarget, SurfaceAlreadyBound, NoAdapterFound, DeviceOpenFailed, SurfaceCreationFailed(WindowingApiError), SurfaceImportFailed(WindowingApiError), SurfaceTextureCreationFailed(WindowingApiError), PresentFailed(WindowingApiError), NoCurrentContext, NoCurrentConnection, IncompatibleSurface, IncompatibleContextDescriptor, IncompatibleContext, IncompatibleSharedContext, IncompatibleSurfaceTexture, NoWidgetAttached, WidgetAttached, InvalidNativeWidget, SurfaceDataInaccessible, SurfaceLockFailed, ConnectionFailed, ConnectionRequired, IncompatibleAdapter, IncompatibleNativeWidget, IncompatibleWinitWindow, IncompatibleNativeContext, IncompatibleNativeDevice,
Various errors that methods can produce.
Variants
The method failed for a miscellaneous reason.
The platform doesn’t support this method.
The platform supports this method in theory, but the functionality isn’t implemented yet.
The system doesn’t support the requested OpenGL API type (OpenGL or OpenGL ES).
The system doesn’t support the requested OpenGL compatibility profile for the supplied OpenGL version.
On some systems, like macOS, the compatibility profile is only supported on some GL versions.
The system doesn’t support the requested OpenGL API version.
PixelFormatSelectionFailed(WindowingApiError)
Choosing an OpenGL pixel format failed.
The system couldn’t choose an OpenGL pixel format.
ContextCreationFailed(WindowingApiError)
The system couldn’t create an OpenGL context.
ContextDestructionFailed(WindowingApiError)
The system couldn’t destroy the OpenGL context.
MakeCurrentFailed(WindowingApiError)
The system couldn’t make the OpenGL context current or not current.
The system OpenGL library couldn’t be located.
An extension necessary for this library to function isn’t supported.
Looking up an OpenGL function address failed.
This context renders to an externally-managed render target.
A surface was already attached to this context.
No suitable adapter could be found.
The device couldn’t be opened.
SurfaceCreationFailed(WindowingApiError)
The system couldn’t create a surface.
SurfaceImportFailed(WindowingApiError)
The system couldn’t import a surface from another thread.
SurfaceTextureCreationFailed(WindowingApiError)
The system couldn’t create a surface texture from a surface.
PresentFailed(WindowingApiError)
The system couldn’t present a widget surface.
A context couldn’t be created because there is no current context.
The current connection couldn’t be fetched because there is no current connection.
The surface was not created from this context.
The context descriptor is from a hardware device, but this is a software device, or vice versa.
The context is from a hardware device, but this is a software device, or vice versa.
The shared context is not compatible for sharing.
The surface texture is from a hardware device, but this is a software device, or vice versa.
The surface has no window attachment.
The surface has a window attachment.
The native widget is invalid.
The surface was not created with the CPU_READ_WRITE
flag, so it cannot be accessed from
the CPU.
The surface could not be locked for CPU reading due to an OS error.
A connection to the display server could not be opened.
A connection to the window server is required to open a hardware device.
The adapter type does not match the supplied connection.
The native widget type does not match the supplied device.
The winit
window is incompatible with this backend.
The native context does not match the supplied device.
The native device does not match the supplied connection.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Error
impl Send for Error
impl Sync for Error
impl Unpin for Error
impl UnwindSafe for Error
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,