pub struct HandleCaptureError { /* private fields */ }Expand description
A synchronous failure while capturing a caller’s handle.
Duplication failure is a construction error by design: it is raised on the calling thread, at the point the request is built, where the caller still holds the source handle and can still do something about it. Deferring it to execution would report a caller’s mistake on a worker, to code that has no way to correct it.
Implementations§
Source§impl HandleCaptureError
impl HandleCaptureError
Sourcepub fn failure(&self) -> HandleCaptureFailure
pub fn failure(&self) -> HandleCaptureFailure
Why the capture failed.
Sourcepub fn raw_os_error(&self) -> Option<i32>
pub fn raw_os_error(&self) -> Option<i32>
The underlying Win32 error code.
Trait Implementations§
Source§impl Debug for HandleCaptureError
impl Debug for HandleCaptureError
Source§impl Display for HandleCaptureError
impl Display for HandleCaptureError
Source§impl Error for HandleCaptureError
impl Error for HandleCaptureError
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 !RefUnwindSafe for HandleCaptureError
impl !UnwindSafe for HandleCaptureError
impl Freeze for HandleCaptureError
impl Send for HandleCaptureError
impl Sync for HandleCaptureError
impl Unpin for HandleCaptureError
impl UnsafeUnpin for HandleCaptureError
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