[][src]Enum surfman::error::Error

pub enum Error {
    Failed,
    UnsupportedOnThisPlatform,
    Unimplemented,
    UnsupportedGLType,
    PixelFormatSelectionFailed(WindowingApiError),
    NoPixelFormatFound,
    ContextCreationFailed(WindowingApiError),
    ContextDestructionFailed(WindowingApiError),
    MakeCurrentFailed(WindowingApiError),
    NoGLLibraryFound,
    RequiredExtensionUnavailable,
    GLFunctionNotFound,
    ExternalRenderTarget,
    SurfaceAlreadyBound,
    NoAdapterFound,
    DeviceOpenFailed,
    SurfaceCreationFailed(WindowingApiError),
    SurfaceImportFailed(WindowingApiError),
    SurfaceTextureCreationFailed(WindowingApiError),
    NoCurrentContext,
    IncompatibleSurface,
    IncompatibleContextDescriptor,
    IncompatibleContext,
    IncompatibleSurfaceTexture,
    NoHardwareAdapters,
    NoSoftwareAdapters,
    NoWidgetAttached,
    WidgetAttached,
    InvalidNativeWidget,
    SurfaceDataInaccessible,
    SurfaceLockFailed,
    ConnectionFailed,
    ConnectionRequired,
    IncompatibleNativeWidget,
    IncompatibleWinitWindow,
}

Variants

Failed

The method failed for a miscellaneous reason.

UnsupportedOnThisPlatform

The platform doesn't support this method.

Unimplemented

The platform supports this method in theory, but the functionality isn't implemented yet.

UnsupportedGLType

The system doesn't support the requested OpenGL API type (OpenGL or OpenGL ES).

PixelFormatSelectionFailed(WindowingApiError)

Choosing an OpenGL pixel format failed.

NoPixelFormatFound

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.

NoGLLibraryFound

The system OpenGL library couldn't be located.

RequiredExtensionUnavailable

An extension necessary for this library to function isn't supported.

GLFunctionNotFound

Looking up an OpenGL function address failed.

ExternalRenderTarget

This context renders to an externally-managed render target.

SurfaceAlreadyBound

A surface was already attached to this context.

NoAdapterFound

No suitable adapter could be found.

DeviceOpenFailed

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.

NoCurrentContext

A context couldn't be created because there was no current context.

IncompatibleSurface

The surface was not created from this context.

IncompatibleContextDescriptor

The context descriptor is from a hardware device, but this is a software device, or vice versa.

IncompatibleContext

The context is from a hardware device, but this is a software device, or vice versa.

IncompatibleSurfaceTexture

The surface texture is from a hardware device, but this is a software device, or vice versa.

NoHardwareAdapters

There is no hardware adapter available with this backend.

NoSoftwareAdapters

There is no software adapter available with this backend.

NoWidgetAttached

The surface has no window attachment.

WidgetAttached

The surface has a window attachement.

InvalidNativeWidget

The native widget is invalid.

SurfaceDataInaccessible

The surface was not created with the CPU_READ_WRITE flag, so it cannot be accessed from the CPU.

SurfaceLockFailed

The surface could not be locked for CPU reading due to an OS error.

ConnectionFailed

A connection to the display server could not be opened.

ConnectionRequired

A connection to the window server is required to open a hardware device.

IncompatibleNativeWidget

The native widget type does not match the supplied device.

IncompatibleWinitWindow

The winit window is incompatible with this backend.

Trait Implementations

impl Debug for Error[src]

Auto Trait Implementations

impl Send for Error

impl Sync for Error

impl Unpin for Error

impl UnwindSafe for Error

impl RefUnwindSafe for Error

Blanket Implementations

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]