#[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.
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§
Source§impl Debug for StateQueryError
impl Debug for StateQueryError
Source§impl Display for StateQueryError
impl Display for StateQueryError
Source§impl Error for StateQueryError
impl Error for StateQueryError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
Auto Trait Implementations§
impl Freeze for StateQueryError
impl RefUnwindSafe for StateQueryError
impl Send for StateQueryError
impl Sync for StateQueryError
impl Unpin for StateQueryError
impl UnwindSafe for StateQueryError
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more