pub enum DxgiCaptureSourceError {
Windows(Error),
NoSuchOutput(u32),
AccessLost,
SeekUnsupported,
RegionOutsideDesktop(CaptureRect),
RegionSpansMultipleAdapters,
CursorUnsupportedForRegion,
}dxgi-capture and (crate features dxgi-capture or wasapi-capture) only.Expand description
Errors specific to DxgiCaptureSource. Converts into the crate-wide
Error via ? (see crate::error::Error).
Variants§
Windows(Error)
NoSuchOutput(u32)
AccessLost
DXGI_ERROR_ACCESS_LOST specifically, broken out of the generic
DxgiCaptureSourceError::Windows variant because it’s the single
most common recoverable failure mode for desktop duplication —
a lock screen, a UAC prompt, a display mode change, or a
fullscreen-exclusive app/overlay stealing the duplication lock all
surface this way. Same “fail fast, caller rebuilds a fresh one”
contract crate::elements::RtspSource already documents: this
element doesn’t retry internally, callers that want to survive a
lock-screen cycle watch for this specific error and call
DxgiCaptureSource::open again.
SeekUnsupported
RegionOutsideDesktop(CaptureRect)
RegionSpansMultipleAdapters
See CaptureArea::Region’s own docs on why this is a hard
failure rather than an automatic CPU-bridged fallback.
CursorUnsupportedForRegion
Trait Implementations§
Source§impl Debug for DxgiCaptureSourceError
impl Debug for DxgiCaptureSourceError
Source§impl Display for DxgiCaptureSourceError
impl Display for DxgiCaptureSourceError
Source§impl Error for DxgiCaptureSourceError
impl Error for DxgiCaptureSourceError
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()