Struct windows::runtime::Error [−]
pub struct Error { /* fields omitted */ }
Expand description
A WinRT error object consists of both an error code as well as detailed error information for debugging.
Implementations
impl Error
impl Error
pub const OK: Self
pub const OK: Self
An error object without any failure information.
This creates a new WinRT error object, capturing the stack and other information about the point of failure.
pub fn from_win32() -> Self
The error information describing the error.
pub fn win32_error(&self) -> Option<u32>
pub fn win32_error(&self) -> Option<u32>
Returns the win32 error code if the underlying HRESULT’s facility is win32
Trait Implementations
impl StructuralPartialEq for Error
Auto Trait Implementations
impl RefUnwindSafe for Error
impl UnwindSafe for Error
Blanket Implementations
Mutably borrows from an owned value. Read more