pub enum OutputDuplicationError {
NoOutput,
DeviceError(Error),
}Available on Windows only.
Expand description
Errors that can occur during output duplication initialization.
Variants§
NoOutput
No suitable output display was found.
This occurs when no displays are connected, all displays are disabled, or the graphics driver doesn’t support Desktop Duplication.
Recovery: Ensure a display is connected and graphics drivers support Desktop Duplication.
DeviceError(Error)
Failed to create the D3D11 device or duplicate the output.
This can occur due to graphics driver issues, insufficient system resources, or incompatible graphics hardware.
Recovery: Check graphics driver installation and system resources.
Trait Implementations§
Source§impl Debug for OutputDuplicationError
impl Debug for OutputDuplicationError
Source§impl Display for OutputDuplicationError
impl Display for OutputDuplicationError
Source§impl Error for OutputDuplicationError
impl Error for OutputDuplicationError
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 OutputDuplicationError
impl RefUnwindSafe for OutputDuplicationError
impl Send for OutputDuplicationError
impl Sync for OutputDuplicationError
impl Unpin for OutputDuplicationError
impl UnsafeUnpin for OutputDuplicationError
impl UnwindSafe for OutputDuplicationError
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