[][src]Enum luminance_glfw::StateQueryError

#[non_exhaustive]pub enum StateQueryError {
    UnavailableGLState,
    UnknownBlendingState(u8),
    UnknownBlendingEquation(u32),
    UnknownBlendingSrcFactor(u32),
    UnknownBlendingDstFactor(u32),
    UnknownDepthTestState(u8),
    UnknownDepthWriteState(u8),
    UnknownFaceCullingState(u8),
    UnknownFaceCullingOrder(u32),
    UnknownFaceCullingMode(u32),
    UnknownVertexRestartState(u8),
    UnknownSRGBFramebufferState(u8),
    UnknownScissorState(u8),
}

An error that might happen when the context is queried.

Variants (Non-exhaustive)

Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
UnavailableGLState

The GLState object is unavailable.

That might occur if the current thread doesn’t support allocating a new graphics state. It might happen if you try to have more than one state on the same thread, for instance.

UnknownBlendingState(u8)

Corrupted blending state.

UnknownBlendingEquation(u32)

Corrupted blending equation.

UnknownBlendingSrcFactor(u32)

Corrupted blending source factor.

UnknownBlendingDstFactor(u32)

Corrupted blending destination factor.

UnknownDepthTestState(u8)

Corrupted depth test state.

UnknownDepthWriteState(u8)

Corrupted depth write state.

UnknownFaceCullingState(u8)

Corrupted face culling state.

UnknownFaceCullingOrder(u32)

Corrupted face culling order.

UnknownFaceCullingMode(u32)

Corrupted face culling mode.

UnknownVertexRestartState(u8)

Corrupted vertex restart state.

UnknownSRGBFramebufferState(u8)

Corrupted sRGB framebuffer state.

UnknownScissorState(u8)

Corrupted scissor state.

Trait Implementations

impl Debug for StateQueryError[src]

impl Display for StateQueryError[src]

impl Error for StateQueryError[src]

Auto Trait Implementations

Blanket Implementations

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

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

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

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

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

impl<T> ToString for T where
    T: Display + ?Sized
[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.