pub enum BlurError {
ResourceCreation {
stage: BlurStage,
source: BackendError,
},
UnsupportedTarget {
format: String,
},
GrabFailed {
region: GlRegion,
source: BackendError,
},
UnsupportedContext {
detail: String,
},
}Expand description
Everything that can go wrong producing a frosted surface. Each Display is a complete
sentence; ResourceCreation.stage localizes a 3 AM kiosk failure to the exact resource
that died.
Variants§
ResourceCreation
A GPU resource could not be created during prepare.
UnsupportedTarget
The caller’s target color format is not on the backend’s supported-composite allowlist. Distinct from a backend’s own must-match-format validation (DESIGN §4.4/§4.5).
Fields
GrabFailed
The grab-pass backend could not produce a sampleable source from the live framebuffer. (Reserved for the deferred glow path; the socket exists now so adding it is not a core rewrite.)
UnsupportedContext
The live GL context lacks a capability the grab-pass backend requires (too-old GL/GLES, a missing float-render extension). Raised at backend construction, before any frame.
Fields
detail: StringWhat was required vs. found, captured as text because core cannot name a glow
version/extension type (the same documented String exception as
UnsupportedTarget, DESIGN §4.5).
Trait Implementations§
Source§impl Error for BlurError
impl Error for BlurError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
use the Display impl or to_string()