pub struct WindowsApiError {
pub inner: Error,
pub context: Option<Cow<'static, str>>,
}Expand description
Windows API error with optional context.
Fields§
§inner: ErrorThe underlying Windows error.
context: Option<Cow<'static, str>>Optional context about what operation failed.
Implementations§
Trait Implementations§
Source§impl Debug for WindowsApiError
impl Debug for WindowsApiError
Source§impl Display for WindowsApiError
impl Display for WindowsApiError
Source§impl Error for WindowsApiError
impl Error for WindowsApiError
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 WindowsApiError
impl RefUnwindSafe for WindowsApiError
impl Send for WindowsApiError
impl Sync for WindowsApiError
impl Unpin for WindowsApiError
impl UnsafeUnpin for WindowsApiError
impl UnwindSafe for WindowsApiError
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