Enum luminance_glow::StateQueryError[][src]

#[non_exhaustive]
pub enum StateQueryError {
Show variants UnavailableGlowState, UnknownArrayBufferInitialState, UnknownViewportInitialState, UnknownClearColorInitialState, UnknownDepthWriteMaskState, UnknownBlendingEquation(u32), CannotRetrieveBlendingEquationRGB, CannotRetrieveBlendingEquationAlpha, CannotRetrieveBlendingSrcFactorRGB, CannotRetrieveBlendingSrcFactorAlpha, CannotRetrieveBlendingDstFactorRGB, CannotRetrieveBlendingDstFactorAlpha, CannotRetrieveRequiredGlowExtensions(Vec<String>), UnknownBlendingSrcFactorRGB(u32), UnknownBlendingSrcFactorAlpha(u32), UnknownBlendingDstFactorRGB(u32), UnknownBlendingDstFactorAlpha(u32), UnknownFaceCullingOrder, UnknownFaceCullingMode, UnknownScissorRegionInitialState,
}

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.
UnavailableGlowState

The Glow state 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.

UnknownArrayBufferInitialState

Unknown array buffer initial state.

UnknownViewportInitialState

Unknown viewport initial state.

UnknownClearColorInitialState

Unknown clear color initial state.

UnknownDepthWriteMaskState

Unknown depth write mask initial state.

UnknownBlendingEquation(u32)

Corrupted blending equation.

CannotRetrieveBlendingEquationRGB

RGB blending equation couldn’t be retrieved when initializing the Glow state.

CannotRetrieveBlendingEquationAlpha

Alpha blending equation couldn’t be retrieved when initializing the Glow state.

CannotRetrieveBlendingSrcFactorRGB

Source RGB factor couldn’t be retrieved when initializing the Glow state.

CannotRetrieveBlendingSrcFactorAlpha

Source alpha factor couldn’t be retrieved when initializing the Glow state.

CannotRetrieveBlendingDstFactorRGB

Destination RGB factor couldn’t be retrieved when initializing the Glow state.

CannotRetrieveBlendingDstFactorAlpha

Destination alpha factor couldn’t be retrieved when initializing the Glow state.

CannotRetrieveRequiredGlowExtensions(Vec<String>)

Required WebGL extensions cannot be enabled

UnknownBlendingSrcFactorRGB(u32)

Corrupted blending source factor (RGB).

UnknownBlendingSrcFactorAlpha(u32)

Corrupted blending source factor (alpha).

UnknownBlendingDstFactorRGB(u32)

Corrupted blending destination factor (RGB).

UnknownBlendingDstFactorAlpha(u32)

Corrupted blending destination factor (alpha).

UnknownFaceCullingOrder

Corrupted face culling order.

UnknownFaceCullingMode

Corrupted face culling mode.

UnknownScissorRegionInitialState

Unknown scissor region initial 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.