Expand description
The capture engine’s typed error surface.
The crate depends on thiserror only — no anyhow in its public API. Conditions a
caller may want to react to (present a message, pick a fallback, translate) get their
own variant; every lower-level failure (EGL, FFmpeg, PipeWire, Wayland, GL readback, IO)
flows through CaptureError::Backend, which keeps a human context and the
underlying cause via #[source], so the error chain is preserved. Variant text is plain
technical English, deliberately not localised — this is a library, so callers
translate by matching the variant.
Enums§
- Capture
Error - An error from the capture engine.
Traits§
- Context
- Attach context to a fallible value, mapping its error into
CaptureError::Backendwhile preserving the original cause. Mirrorsanyhow::Context, so a call site only has to importcrate::error::Contextinstead ofanyhow::Context.
Type Aliases§
- Result
- The crate’s result type:
Result<T, CaptureError>. Mirrorsanyhow::Resultso a call site keeps itsResult<T>signatures and only swaps the import.