#[non_exhaustive]
pub enum StateQueryError {
Show 16 variants UnavailableGLState, UnknownBlendingState(u8), UnknownBlendingEquation(u32), UnknownBlendingSrcFactor(u32), UnknownBlendingDstFactor(u32), UnknownDepthTestState(u8), UnknownStencilTestState(u8), UnknownStencilTestComparison(i32), UnknownStencilOp(i32), UnknownWriteState(u8), UnknownFaceCullingState(u8), UnknownFaceCullingOrder(u32), UnknownFaceCullingMode(u32), UnknownVertexRestartState(u8), UnknownSRGBFramebufferState(u8), UnknownScissorState(u8),
}
Expand description

An error that might happen when the context is queried.

Variants (Non-exhaustive)

This enum is marked as 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.

UnknownStencilTestState(u8)

Corrupted stencil test state.

UnknownStencilTestComparison(i32)

Corrupted stencil test comparison.

UnknownStencilOp(i32)

Corrupted stencil op.

UnknownWriteState(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

Formats the value using the given formatter. Read more

Formats the value using the given formatter. Read more

The lower-level source of this error, if any. Read more

🔬 This is a nightly-only experimental API. (backtrace)

Returns a stack backtrace, if available, of where this error occurred. Read more

👎 Deprecated since 1.42.0:

use the Display impl or to_string()

👎 Deprecated since 1.33.0:

replaced by Error::source, which can support downcasting

Converts to this type from the input type.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Converts the given value to a String. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.