pub struct CaptureError { /* private fields */ }Expand description
A composite capture failed.
The failing aspect is derived from the failure rather than stored beside it, so the two cannot disagree.
Implementations§
Source§impl CaptureError
impl CaptureError
Sourcepub const fn aspect(&self) -> CapturableAspect
pub const fn aspect(&self) -> CapturableAspect
Which aspect failed.
Sourcepub const fn failure(&self) -> &CaptureFailure
pub const fn failure(&self) -> &CaptureFailure
The underlying failure.
Sourcepub fn raw_os_error(&self) -> Option<i32>
pub fn raw_os_error(&self) -> Option<i32>
The underlying Win32 code, if the failing aspect reported one.
Trait Implementations§
Source§impl Debug for CaptureError
impl Debug for CaptureError
Source§impl Display for CaptureError
impl Display for CaptureError
Source§impl Error for CaptureError
impl Error for CaptureError
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 CaptureError
impl !UnwindSafe for CaptureError
impl Freeze for CaptureError
impl Send for CaptureError
impl Sync for CaptureError
impl Unpin for CaptureError
impl UnsafeUnpin for CaptureError
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